lbrocka Posted November 2, 2001 Posted November 2, 2001 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
Vaughan Posted November 2, 2001 Posted November 2, 2001 Use a calculation field and the Round() function.
LeCates Posted November 2, 2001 Posted November 2, 2001 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 ]
lbrocka Posted November 4, 2001 Author Posted November 4, 2001 Thank you! It was the fraction that was causing me to pull my hair out.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now