Jump to content

Rounding Up to Nearest Quarter


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

Recommended Posts

I found this example below on FileMaker forums. Instead of rounding down all the time I would like it to round up or down based on the value. Any suggestions on how to do that?


The following calculation formula will round any number down to the nearest quarter decimal (.00, .25, .50 or .75). For example, the number ...

123.10...would return 123.00. These examples would also follow:

.27 -> .25

.52 -> .50

.86 -> .75

15.98 -> 15.75

25325.98756323 -> 25325.75

157.02 -> 157.00The integer values do not change.

Here's the formula, assuming you have a field called Number:

Int(Number) + Choose(Int(Mod(Number, 1) /.25), 0, .25, .50,.75)

Link to comment
Share on other sites

This topic is 4503 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.