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

Hi all,

I got this incredible calculation from you guys a while ago, to make a text field show numbers with the thousanth separaters. this calc rounds off the decimal. I want it to always show 2 decimals. Can someone help me? I still don't fully understand the calc so I am having trouble changing it.

Thanks

this is the current calc:

Case(Labor_Profit < 0 ; "-")

&

Choose( Abs( Round( Labor_Profit ; 2 )) < 10^9 ;

Right( Abs(Int( Round(Labor_Profit ; 2 ) / 10^9 )) ; 3 ) & "," )

&

Choose( Abs( Round( Labor_Profit ; 2 )) < 10^6 ;

Right( Abs(Int( Round( Labor_Profit ; 2 ) / 10^6 )) ; 3 ) & "," )

&

Choose( Abs( Round( Labor_Profit ; 2 )) < 10^3 ;

Right( Abs(Int( Round( Labor_Profit ; 2 ) / 10^3 )) ; 3 ) & "," )

&

Right( Abs( Int( Round(Labor_Profit ; 2 ))) ; 3 )

&

Let([ M = Mod( Labor_Profit; 1 ); P = Min( 2; Length(Round( M; 2 )) - 1 ) ];

Choose( P <= 0; "." &

Right( 10 ^ P & Abs( Round( Labor_Profit; P ) )

* ( 10 ^ P ) ; P ))

)

I think you can just eliminate the test for Min() for P, just set it to 2. Use this line instead of the one you have:

Let([ M = Mod( Labor_Profit; 1 ); P = 2];

  • Author

Perfect! Thank you so much.

P stands for 'precision'. If you want fixed precision of 2, you can replace P with 2, get rid of the M, and simplify to:

...

&

"." & Right ( "00" & Abs ( Round ( Labor_Profit * 100 ; 0 ) ) ; 2 )

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.