Skip 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.

Formatting of zero result summary

Featured Replies

Hi there

I have a quick question regarding the final output of a summary zero result.

I'm setting up a user import routine that needs to be very, very simple to use with checks and measures throughout.  The data that's being imported, due to its nature, always comes back to a summary value of zero.  This is the correct position.

I'm currently at the testing phase where I'm summarising the values field to get a total and the result is always displayed as  "-3.6e-11".  Now, I'm happy that's zero, but I want to use this in a custom dialog box: "Your check digit is"&sCheckDigit

Obviously I'd rather have "Your check digit is 0.00" displayed, rather than "Your check digit is -3.6e-11"

I can't format it because it's not being used on a layout, I can't use GetSummay because there's nothing to break on given the flat nature of the import.  

Any help really appreciated on this, thanks

 

 

Can't you simply round the sCheckDigit value? if you want to also format it to display 2 decimal places, you could use =

Let ( 
a = Abs ( Round ( sCheckDigit ; 2 ) )
;
"Your check digit is " & Int ( a ) & SerialIncrement ( ".00" ; 100 * Mod ( a ; 1 ) )
)

 

  • Author

That's perfect Comment, thanks for your help :)

I can't use GetSummay because there's nothing to break on given the flat nature of the import.  

​btw, this

GetSummary ( aSummaryField ; aSummaryField /*the same one*/ )

returns the value of the summary field over the entire found set.

Edited by eos

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.