Functions for formatting numeric values.
-
formatDecimal( value, dp )
- Turns a floating point value into a string with a given number of
decimal places.
-
formatDecimal( value, format )
- Turns a floating point value into a formatted string.
The
format string is as defined by Java's
java.text.DecimalFormat class.