Brian Dunning's FileMaker Custom Functions

RoundDecimals ( Number ; Decimals )

Number field formatting as a calc

  Average rating: 3.9 (38 votes) Log in to vote

Martin Norén   Martin Norén
Square Moon Ind. AB
http://www.squaremoon.nu

Share on Facebook Share on Twitter

  Sample input:
RoundDecimals ( 2 ; 3 )
  Sample output:
2,000

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

The purpose of the function is to make ,5 to 0,50 without field formatting. This is convenient when sending confirmation mails in fixed width font, with aligned right margin, for the amounts.

Number=A number or text field
Decimals=The number of digits you want after the decimal character


Comment: Switch the separator to the appropriate one for your country (and the FileMaker calc separator as well...). As noticed above, the limit is 10 digits after the separator //MartinN

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.