grumbachr Posted November 28, 2011 Posted November 28, 2011 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)
LaRetta Posted November 28, 2011 Posted November 28, 2011 "I would like it to round up or down based on the value." Based upon the value how? We need the specific rules on the point where it should round up or down. :-)
comment Posted November 28, 2011 Posted November 28, 2011 Try = .25 * Round ( 4 * Number ; 0 ) This doesn't fit your topic title, though.
Recommended Posts
This topic is 4801 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