Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8419 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm having a problem with rounding to nearest quarter (.25) I have a number times a billing factor which then needs to round to nearest .25. Hope someone has an answer 'cause this is making me nuts. Thanks crazy.gif" border="0

Posted

Hi Lori,

To round to the nearest .25:

code:


calc = Round(num*4, 0) / 4

To generalize for rounding to any fraction:

code:


calc = Round(num*(1/fraction), 0) / (1/fraction)

Good luck!

[ November 04, 2001: Message edited by: droid ]

This topic is 8419 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.