Currency Round UP

jempie

Registered User.
Local time
Today, 00:34
Joined
Jul 28, 2004
Messages
34
Hi there,

I have a field of data that has been created by a query:

6.1
7.6
8.7
9.0
10.2

I want to round up any values with a decimal point between .1 and .4 to .5 and anything between .6 and .9 to the next full number (i.e. 8.1 = 8.5 8.8 = 9.0).

I have searched here and the net and cannot find anything.

Can anyone help?

Thanks.
 
Code:
Function RoundUpHalf(sValue As Single) As Single
   RoundUpHalf = Int(sValue * 2 + 1) / 2
End Function
 

Users who are viewing this thread

Back
Top Bottom