addedValueMacros.moneyFormat
Syntax
{addedValueMacros.moneyFormat(decimal, places, currSymbol="$", flSymbolLeads=true)
- decimal - a number.
- places - an integer, the number of places to display after the decimal point
- currSymbol - optional, default $, currency symbol to use.
- flSymbolLeads - optional,default true, true if symbol is to go in front of amount, false for after.
Examples
| {addedValueMacros.moneyFormat(5975.47, 2)} |
$5,975.47 |
| {addedValueMacros.moneyFormat(5975.47, 2, "GBP", false)} |
5,975.47GBP |
Semantics
MoneyFormat returns a string formatting a number into a currency string. It is needed because there is no Frontier internal routines for this and while there are good libraries available on the Macintosh , they use ROM specific routines.