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

I can't believe this hasn't been covered before, but my searches yielded no results so here goes.

I import prices from an excel file, into a number field. On the layout it is formatted to show with currency and 2 decimal places, e.g. £5.00

Is there an easy calculation that will turn '5' into '£5.00'?

At present I have a cumbersome one based on case and the position of '.' in the field, but I'd love it to be simpler. I can't use custom functions, but wondered if there was something cunning I could do with the standard functions that had escaped me?

(The reason for this is that the main function of the database is to export tagged text for Quark. The export field is a long and complex calculation, so I can't just export the price field with formatting on its own.)

If you can type a '£' on your keyboard then you should be able to do it. Handle it from Format > Number. Specify decimal and 2 places. Right below is Use Notation. Type the '£' within the currency symbol box.

  • Author

Yes, I've got that. But I need the actual content of the field to be '£5.00' whereas it is now '5'. At present I am defining a calculation field called 'PriceAsText' which contains :o

"£" & Case ( Position ( Price ; "." ; 1 ; 1 ) =0; Price & ".00"; Position ( Price ; "." ; 1 ; 1 ) =Length(Price)-2 ; Price;Position (Price ; "." ; 1 ; 1 ) =Length(Price)-1 ;Price & "0";"")

- which seems long and clunky to me. I was hoping someone had a quick trick!

Try:

"£" &

Int ( Price )

& "." &

Right ( "00" & Price * 100 ; 2 )

This assumes Price is not negative, and that it has been pre-rounded to 2 decimal places.

For a more flexible formula see:

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

  • Author

Cheers, Comment, that's shorter! And yes, I can assume both of those things.

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.