Round Up (1 Viewer)

rothjm

Registered User.
Local time
Today, 09:49
Joined
Jun 3, 2003
Messages
46
I have a report with costs that I want to round up to the nearest .25.
I have tried the round function but it will only round to the nearest .25 (rounds down if closer, I don't want that).

This will round to the nearest quarter but not always round up.

=0.25*Round([num]/0.25,0)

I have searched and didn't find an answer.
I would greatly appreciate any advice. Thanks
 

Malcy

Registered User.
Local time
Today, 15:49
Joined
Mar 25, 2003
Messages
586
Hi Jeff
This will round up to the nearest half
Code:
(Int([MyField]*-2))/-2
so I guess, and you had best try it since I might be talking cobblers, the following would round up to the nearest quarter
Code:
(Int([MyField]*-4))/-4
At least it might be worth trying but the more I look at it the more I am suspicious it won't work. Might spark a thought for you though
Best wishes
 

rothjm

Registered User.
Local time
Today, 09:49
Joined
Jun 3, 2003
Messages
46
Hi Jeff
This will round up to the nearest half
Code:
(Int([MyField]*-2))/-2
so I guess, and you had best try it since I might be talking cobblers, the following would round up to the nearest quarter
Code:
(Int([MyField]*-4))/-4
At least it might be worth trying but the more I look at it the more I am suspicious it won't work. Might spark a thought for you though
Best wishes


Excellent, that worked! THANKS:D
 

Users who are viewing this thread

Top Bottom