NumberFormat
is an option for NumberForm and related functions that specifies how the mantissa, base, and exponent should be assembled into a final print form.
Details
- With the setting NumberFormat->f, the function f is supplied with three arguments: the mantissa, base and exponent of each number to be printed. »
- The arguments are all given as strings. »
- When no exponent is to be printed, the third argument is given as "". »
- The function f must return the final format for the number.
Examples
open allclose allBasic Examples (1)
Scope (3)
Use NumberFormat with PaddedForm:
Display numbers as lists containing the mantissa, base, and exponent:
Do the same for ScientificForm:
If there is no exponent, the third argument is an empty string:
Text
Wolfram Research (1991), NumberFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/NumberFormat.html.
CMS
Wolfram Language. 1991. "NumberFormat." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NumberFormat.html.
APA
Wolfram Language. (1991). NumberFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumberFormat.html