abbaddon223
Registered User.
- Local time
- Today, 03:58
- Joined
- Mar 13, 2010
- Messages
- 162
Hello all,
I'm hoping someone out there can be very kind and help me please!!
I have a field [Duration] which contains a numeric value which relates to seconds that a call has lasted for. So, typical values can be
0
2
157
Any value really, but they are all seconds.
I have another field in the same tables [Duration_Minutes]. What I would like to do is take the value of [Duration] and round it UP to the nearest minute, so in the examples above:
0 (seconds) would still be 0 (minutes)
2 (seconds) - would become 1 (minute)
157 (seconds) would become 3 (minutes)
etc etc etc. The simple calculation in my simple brain is obviously, seconds divided by 60 to get the minutes, but I don't know how to round it UP (always UP, no matter how close it is to the lower minute).
Any help greatly appreciated :banghead:
I'm hoping someone out there can be very kind and help me please!!
I have a field [Duration] which contains a numeric value which relates to seconds that a call has lasted for. So, typical values can be
0
2
157
Any value really, but they are all seconds.
I have another field in the same tables [Duration_Minutes]. What I would like to do is take the value of [Duration] and round it UP to the nearest minute, so in the examples above:
0 (seconds) would still be 0 (minutes)
2 (seconds) - would become 1 (minute)
157 (seconds) would become 3 (minutes)
etc etc etc. The simple calculation in my simple brain is obviously, seconds divided by 60 to get the minutes, but I don't know how to round it UP (always UP, no matter how close it is to the lower minute).
Any help greatly appreciated :banghead: