Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rounding

Featured Replies

Hi everybody i am having serious trouble. I have a total cost field that i am trying to have round up or down to the nearest .05

Round ( (Cost + Sales Tax) ; .05 )

i have tried that but it almost always gives me a whole amount

EX. $4.47 = $4.00

What i would like is for $4.47 to equal $4.45

so please any help would be greatly appreciated

Edited by Guest

Try:

Round ( n / 0.05 ; 0 ) * 0.05

  • Author

Perfect! thank you comment

  • Author

comment im sorry but i was wrong i need it to only round down if you could be so nice to help me again

Rather obvious, no?

Floor ( n / 0.05 ) * 0.05

  • Author

that is working great but on occasion it will round when it shouldnt

EX.

24.45 + 1.25 = 25.70

but it will take that and round it to 25.65

Most likely, your data is not what you think it is - e.g. the 1.25 is actually 1.249999999.

  • Author

you were right as always but is there a way to make it not do that? im guessing i would have to put a round calculation in the sales tax calculation field?

  • Author

so i think i got it would this be right

Ceiling ( (Cost * .051) * 10 ^ 2 ) * 10 ^ -2

Edited by Guest

There's no single correct answer here - it all depends on the reason behind the rounding. Obviously, if you're rounding twice, you may get a discrepancy. It's best to round EITHER the tax OR the total.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.