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.

Problem with decimal places after publishing onlin

Featured Replies

I have no problem defining fields and telling numbers to have 2 decimal places while in Filemaker, but once the information is published online they seem to get a mind of their own. For instance, in Filemaker I can view

I just tested this with FMP7 IWP and it seems to work fine, but if you're using v6, that isn't very helpful. One way around this would be to display the data using calculation fields which round to the appropriate digit.

Howdy! I just copied 133.493828434 and pasted into a number field and then set the field format on the layout to 2 digits and I see 133.49 until I click in it and then I see the long value. On IWP, it shows up as 133.49 until clicked in, just as in FM. I did not use the

  • Author

still nothing. thanks for the help though. confused.gif

Beleive it or not this is a calculation that I use as a custom function in FMP7 that adds comma's and decimal.

This is what we use to display numbers on the WEB as we had the same problem

(number_to_comma_gn) is the number you want to display correctly

"$ " & If( GetAsNumber(Int(GetAsText(number_to_comma_gn)) &

Case(Int(GetAsText(number_to_comma_gn)) = GetAsText(number_to_comma_gn);".00"; Left(Mod(GetAsText(number_to_comma_gn); 1) &

"00"; 3)))>999; Left(Int(GetAsText(number_to_comma_gn)) &

Case(Int(GetAsText(number_to_comma_gn)) = GetAsText(number_to_comma_gn);".00"; Left(Mod(GetAsText(number_to_comma_gn); 1) &

"00"; 3)); (Position(Int(GetAsText(number_to_comma_gn)) & Case(Int(GetAsText(number_to_comma_gn)) = GetAsText(number_to_comma_gn);".00"; Left(Mod(GetAsText(number_to_comma_gn); 1) & "00"; 3)); "."; 1; 1)-4)) &

"," & Middle( Int(GetAsText(number_to_comma_gn)) &

Case(Int(GetAsText(number_to_comma_gn)) = GetAsText(number_to_comma_gn);".00"; Left(Mod(GetAsText(number_to_comma_gn); 1) &

"00"; 3)); (Position(Int(GetAsText(number_to_comma_gn)) &

Case(Int(GetAsText(number_to_comma_gn)) = GetAsText(number_to_comma_gn);".00"; Left(Mod(GetAsText(number_to_comma_gn); 1) &

"00"; 3)); "."; 1; 1)-3); 20); Int(GetAsText(number_to_comma_gn)) &

Case(Int(GetAsText(number_to_comma_gn)) = GetAsText(number_to_comma_gn);".00"; Left(Mod(GetAsText(number_to_comma_gn); 1) &

"00"; 3)))

Hope this helps

Stu

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.