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.

Show two decimal places only if they are not zeros

Featured Replies

Hi folks,

 

Have a Filemaker 11 question. Is it possible to set the formatting of a number field to only show decimals if they exist? What I mean is I know under formatting data I can set it to decimal and set fixed number of decimals to two. However if the number is a whole number it will show .00 after it, which is to be expected. However I would rather it did not as the number is a percentage (I can't make the field a percentage field for a number of reasons). The "Do not display number if zero" option only seems to come into play if the entire number is 0. Creating a "Round" calculation won't work as the number needs to be the complete number for other calculations in the solution to work, but the user does not need to see the whole string of numbers. I know I could do a workaround by adding a calc field infront of the main field, disallow field entry and conditionally format it and the main field, but I was wondering if there is a native function I am overlooking as there are a number of these fields and I'd rather not add a bunch of extra fields if i don't have to?

 

James

No, I am afraid you have to do the Round() thing.

  • Author

As I feared! Thanks for the reply :)

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.