RoundDecimals ( Number ; Decimals )
Number field formatting as a calc
Average rating: 3.9 (38 votes) Log in to vote
Square Moon Ind. AB
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
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.