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.

NumberForm[expr]

prints using the default options of NumberForm.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Display the first 10 digits of a numeric approximation to :

In[1]:=
Click for copyable input
Out[1]//NumberForm=

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

In[1]:=
Click for copyable input
Out[1]//NumberForm=

Scope  (6)

Options  (13)

Applications  (1)

Properties & Relations  (3)

Possible Issues  (1)

See Also

DecimalForm  ScientificForm  EngineeringForm  AccountingForm  BaseForm  IntegerString  IntegerName  PaddedForm  N  NumberMarks

Tutorials

Introduced in 1988
(1.0)
| Updated in 2017
(11.2)