birchtree Posted January 3, 2002 Posted January 3, 2002 Hello Can someone help with what should be a simple calculation? I sell material by the square foot. Any amount greater than a whole number needs to be rounded up to the next whole number. If the result is 10.1 I need the result to be 11. Thanks alot.
DykstrL Posted January 3, 2002 Posted January 3, 2002 This will do what you need: Case(Int( NumberField )< NumberField ,(Int( NumberField )+1), NumberField )
PinnWal Posted January 3, 2002 Posted January 3, 2002 You could have the round calculation add .5 to the number it intends to round-off & then it will always round to the higher integer. For Example: 10.1 would become 10.6 & then round to 11 10.6 would become 11.1 & still round to 11 If I'm understanding what you're trying to do, then this should work... Later, Paul E. -)
birchtree Posted January 25, 2002 Author Posted January 25, 2002 quote: Originally posted by dykstrl: This will do what you need: Case(Int( NumberField )< NumberField ,(Int( NumberField )+1), NumberField ) Thanks for the suggestion. Sorry I didn't reply earlier, I forgot to check for answers because I solved the problem myself.
birchtree Posted January 25, 2002 Author Posted January 25, 2002 quote: Originally posted by PinnWal: You could have the round calculation add .5 to the number it intends to round-off & then it will always round to the higher integer. For Example: 10.1 would become 10.6 & then round to 11 10.6 would become 11.1 & still round to 11 If I'm understanding what you're trying to do, then this should work... Later, Paul E. -) Thanks for the suggestion. Sorry I didn't reply earlier, I forgot to check for answers because I solved the problem myself.
Recommended Posts
This topic is 8338 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