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.

include zero in calculation

Featured Replies

Hi how do you include a zero in calculation fields? eg. 0.4 displays as .4

TIA

The calculation function strips leading and trailing zeros. You can make it display the leading zero, if you format your number field as

screenshot.jpg

The Forum cut my post short. (:(?)

The whole post continues on to say

The calculation function strips leading and trailing zeros. You can make it display the leading zero, if you format your number field as currency, and remove the currency. Note the circle areas. Other than the 2 places, which you might have more or less selected.

HTH

Lee

Edited by Guest

  • Author

thanks but the problem is (which i should have stated) that the calculation field also contains text

That is a whole different situation.

Can you give an example of how this data in the text field looks (i.e. the text and numbers combined)?

And the Calculation.

Copy and paste here.

Lee

Edited by Guest

  • Author

yeah its basically:

[number field] & " text here"

If the number is entered as 0.4 in the number field, 8.5 will keep that format as is, when used in a calculation as you have shown. I don't see the problem here, unless the 0.4 was the result of a second calculation?

Lee

Edited by Guest

  • Author

yes it was the result of a second calculation, sorry its friday im barely awake!

This can be simple or difficult - depending on the expected results of your calculation (positive/negative/zero, needs rounding or not). The simplest method is to use a merged field in a text object, instead of a calculation. This can be formatted just a like a field.

  • Author

i suppose the more difficult method is to have an if operator whereby if the left most digit is a period then it will at a zero to the start?

But that would break with a negative fraction, e.g. "-.25". By difficult, I meant something like this:

http://www.fmforums.com/forum/showpost.php?post/152886/

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.