Jump 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.

Featured Replies

  • Newbies

To all the gurus, how do I round up a field that contains a number? Basically like this,

Field A = Calculation which result as a number

Field B = Round up of Field A's result.

So, let's say Field A is 345.670 and I want Field B to be 345.700

TIA

Edited by Guest

There is a Round Function. i.e. Round ( number ; precision ) where you can control the round with the number of places (precision).

But to understand what you are really wanting, you need to provide an example if the Round Function isn't what you are looking for.

10.3755555

10.5555

10.80

Lee

Is this for display only? If so, then you dont really need a second field. You can take Field A, and then under number format, then in an option for number of digits. ( Control-click for Mac)

If you definately need a second calc field then look into Round(FieldA;N) Where N is the number of digits you want to round to.

  • Author
  • Newbies

Yes, I am aware of that but the Round function doesn't let me to put a field. eg. Round (Field B,-2) gave me a blank field on view mode.

why are you using a minus sign.

If you want to round to whole numbers, just make it Round (Field B; 0 )

  • Author
  • Newbies

Tried Round(Field B;0) still got a blank. :

Uhmmm wouldnt it be Round([color:red]Field A;0) ?

Also with the example you just added...

So, let's say Field A is 345.670 and I want Field B to be 345.700

you want it rounded to the tenth, so it would be:

Round([color:red]Field A; 1)

  • Author
  • Newbies

Got it! Thanks guys! Found the solution. :

:hair: :giggle:

Good catch.

[color:red]daviper,

You don't need a second field, you can use the Auto Enter Option on Field A, and it will change it to what you want.

If you need more information about this, let me know.

Lee

This formula rounds positive numbers up.

Let ( [

a = 234.000003 ; //number

b = 2 ; //decimal places

c = 1/10^b ] ;

Ceiling ( a / c ) * c ) //gives 234.01

  • 2 years later...

I need to round a decimal to the next nearest multiple of .25 - any suggestions?

Try =

Round ( number * 4 ; 0 ) / 4

sorry - next highest multiple of .25

Well, then =

Ceiling ( number * 4 ) / 4

tremendous - thanks for your help

Create an account or sign in to comment

Important Information

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

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.