NumberFormat
✖
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)Summary of the most common use cases
Display numbers in a Fortran‐like form:

https://wolfram.com/xid/0j47cc6a-jg3e9k


https://wolfram.com/xid/0j47cc6a-udll3


https://wolfram.com/xid/0j47cc6a-dozqkd

Display the exponents after converting to scientific form:

https://wolfram.com/xid/0j47cc6a-dctwsg

Scope (3)Survey of the scope of standard use cases
Use NumberFormat with PaddedForm:

https://wolfram.com/xid/0j47cc6a-g5rvj7


https://wolfram.com/xid/0j47cc6a-nybnce


https://wolfram.com/xid/0j47cc6a-ciugnb


https://wolfram.com/xid/0j47cc6a-l8ac2d


https://wolfram.com/xid/0j47cc6a-c1lgvr

Display numbers as lists containing the mantissa, base, and exponent:

https://wolfram.com/xid/0j47cc6a-9l7g7

Do the same for ScientificForm:

https://wolfram.com/xid/0j47cc6a-p76cv


https://wolfram.com/xid/0j47cc6a-bjxlzk

If there is no exponent, the third argument is an empty string:

https://wolfram.com/xid/0j47cc6a-jnpqei

Wolfram Research (1991), NumberFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/NumberFormat.html.
Text
Wolfram Research (1991), NumberFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/NumberFormat.html.
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.
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
Wolfram Language. (1991). NumberFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumberFormat.html
BibTeX
@misc{reference.wolfram_2025_numberformat, author="Wolfram Research", title="{NumberFormat}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/NumberFormat.html}", note=[Accessed: 08-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_numberformat, organization={Wolfram Research}, title={NumberFormat}, year={1991}, url={https://reference.wolfram.com/language/ref/NumberFormat.html}, note=[Accessed: 08-July-2025
]}