DecimalFormat()
Converts a number to a decimal-formatted string.
DecimalFormat( number=any );
Returns: String
Examples
writeOutput(decimalFormat("45")&"<br>");//45.00
writeOutput(decimalFormat(26));//26.00;
See also
- Numbers
- Strings
- Formatting
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)