# NumberForm

NumberForm[expr,n]

prints with approximate real numbers in expr given to ndigit precision.

NumberForm[expr,{n,f}]

prints with approximate real numbers having n digits, with f digits to the right of the decimal point.

# Details and Options

• NumberForm works on integers as well as approximate real numbers.
• The following options can be given:
•  DigitBlock Infinity number of digits between breaks ExponentFunction Automatic function to apply to exponents ExponentStep 1 steps by which exponents can increase NumberFormat Automatic function used to assemble the mantissa, base, and exponent NumberMultiplier "×" string to use to indicate multiplication NumberPadding {"","0"} strings to use for left and right padding NumberPoint "." decimal point string NumberSeparator {",", " "} string to insert at breaks between blocks NumberSigns {"-",""} strings to use for signs of negative and positive numbers SignPadding False whether to insert padding after the sign
• All options except ExponentFunction and ExponentStep apply to integers as well as approximate real numbers.
• You can mix NumberForm and BaseForm.
• NumberForm acts as a "wrapper", which affects printing, but not evaluation.

# Examples

open allclose all

## Basic Examples(2)

Display the first 10 digits of a numeric approximation to :

 In[1]:=
 Out[1]//NumberForm=

Display a number with 3 precise digits and 4 digits to the right of the decimal:

 In[1]:=
 Out[1]//NumberForm=