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.

Round Function not working

Featured Replies

I have 2 fields - CommAmt and OtherAmt. A third field TotalPymtAmt is the simple? calculation:

Round( CommAmt + OtherAmt ; 2)

If the first 2 fields contain only whole numbers, the result is a whole number only, no decimal places.

How do I get the Round function to calculate whole numbers to xx.00

Specify the number format to have 2 decimal places. In the layout, select the field. Then select Format->Number.

  • Author

Thanks Ender. I guess I didn't fully understand my own problem. I am trying to use the result of this calculation in another calculation (text).

ChqStub="Payment for: " & PayeeName & "return" &

"PaymentAmt: $" & Round(TotalPymtAmt;2) & "Cdn dollars"

Everything works fine, except it only displays the dollars, no cents unless there is actually cents.

Regards, Shirley

  • Author

Again, thanks Ender. I tried out the calcs you suggested, unfortunately they all corrupted my figures. My source fields come in many amts and forms: 15, 148.6, 2378.52 etc. The Round function works fine in the TotalPymtAmt field but, when I place the field in a text calculation field, it reverts to the entry format. I noticed a NumToText Function listed but, it was for Japanese. At this point I don't know where to turn.

Regards, Shirley

ChqStub=

"Payment for: " & PayeeName & "return" &

"PaymentAmt: $" &

Int ( Round ( TotalPymtAmt ; 2 ) )

& "." &

Right ( "00" & Round ( 100 * TotalPymtAmt ; 0 ) ; 2 )

& "Cdn dollars"

  • Author

Hooray! "Comments" method works exactly as I needed it to. Many thanks.

Regards, Shirley

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.