formatNumber(number, string, string)
Formats a number according to the format string.
Parameters
number
format string The format follows the Java
DecimalFormat specification
rounding string
Specifies how the number is to be
rounded
Example
formatNumber(3, '#,###.00','ROUND_HALF_UP');
A number format string can be constructed using the characters listed in the table below.
symbol |
meaning |
0 |
Digit |
# |
Digit, zero shows as absent |
. |
Decimal point |
- |
Minus sign |
, |
Grouping separator |
E |
Separates mantissa and exponent in scientific notation |
; |
Separates positive and negative sub-patterns |
% |
Multiply by 100 and show as percentage |
| << formatDate(date, string) | © 1996-2013 InetSoft Technology Corporation (v11.4) | undefined >> |