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

In a field with as type calculation i have tried these:

Truncate((Ammount_1*Price_1);2)

Truncate(Ammount_1*Price_1;2)

Round((Ammount_1*Price_1);2)

Round(Ammount_1*Price_1;2)

The problem is i want 2 decimals and it will give me two if the calculation without truncating/rounding has 2 or more decimals but otherwise it won't.

Any help would be very appriciated,

Michael

You are looking in the wrong place. Truncation or rounding control the MAXIMUM number of decimal places in a calculated result. If you want "2" to display as "2.00" it is a display formatting issue and not a calculation issue. From a mathematical calculation standpoint 2 and 2.0000 are the same.

In layout mode select the field, go to the Format menu, select "number..." and set the number of decimal digits to be displayed.

Truncation to three places will change 3.1415 into 3.141. Rounding to three places will change 3.1415 to 3.142. Both leave 3 as 3.

-bd

  • Author
  • Newbies

Arg.. i should have know that... wink.gif" border="0

Thanks

Just a clarification... say a field on a layout was formatted to display 3 decimal places, and 3.1415926 was entered into the field. It will display as 3.142 *but* when used as a calculation the entered value of 3.1415926 will be used.

Under certain circumstances the difference between the displayed value and stored value can cause (apparent) discrepancies in calculations.

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.