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.

Custom function for formatting decimal place

Featured Replies

Hi,

I have 3 fields in a table that contain a currency amount in £ and I have formatted the fields on screen with currency £ and 2 decimal places which for on-screen use , is fine.

I need to use the fields' contents in an email and find that I loose the formatting of 2 decimal places when doing so , which I can understand why - but I want £132.00 to appear as £132.00 , not £132 when using the data elsewhere, such as emails.

is this a job for a custom function? and does anyone have an example I can see.

many thanks

is this a job for a custom function? and does anyone have an example I can see.

Lots and lots here. Just search for “currency”.

  • Author

Thanks , I shall take a look.

I wonder why the Round (fieldname ; 2 ) doesn't work better in this application

I wonder why the Round (fieldname ; 2 ) doesn't work better in this application

Because rounding is a numerical operation and as such does not produce trailing zeros.

A relatively simple method would be =

"£" & Int ( Amount ) & SerialIncrement ( ".00" ; 100 * Mod ( Amount ; 1 ) )

This assumes Amount is a non-negative number, rounded to 2 decimal places.

  • Author

thanks for the explanation and the example , i shall try that..

thank you both

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.