MapleTA[Builtin]
numfmt
format a number according to a template
Calling Sequence
Parameters
Description
Examples
Compatibility
numfmt(format, number)
format
-
string
number
numeric
The numfmt command uses a format template to specify how many digits after the decimal point to display among other things. The given number is matched against the template and a formatted string is returned.
This command has the same specification as the built-in Java command, java.text.DecimalFormat.
MapleTA:-Builtin:-numfmt⁡#.00,20.9
20.90
MapleTA:-Builtin:-numfmt⁡#.#,12.34
12.3
MapleTA:-Builtin:-numfmt⁡.#,12.34
MapleTA:-Builtin:-numfmt⁡#.0000,12.3456789
12.3457
MapleTA:-Builtin:-numfmt⁡#.010,12.3456
12.351
MapleTA:-Builtin:-numfmt⁡#,12.34
12
MapleTA:-Builtin:-numfmt⁡#.#,12.3456
MapleTA:-Builtin:-numfmt⁡#.###,12.3456
12.346
MapleTA:-Builtin:-numfmt⁡000.#,12.3456
012.3
The MapleTA[Builtin][numfmt] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
MapleTA
Download Help Document