NumberMarks

NumberMarks
is an option for InputForm and related functions that specifies whether marks should be included in the printed forms of approximate numbers.

DetailsDetails

  • The default setting for NumberMarks is given by the value of $NumberMarks.
  • NumberMarks->True indicates that should be used in all approximate numbers, both machine-precision and arbitrary-precision ones.
  • NumberMarks->Automatic indicates that should be used in arbitrary-precision but not machine-precision numbers.
  • NumberMarks->False indicates that should never be used in outputting numbers.
  • Number marks are used to indicate the type of numbers, and their precision or accuracy.
  • The form for scientific notation is always used in InputForm, and is independent of NumberMarks.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Machine numbers format without number marks by default:

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

The same number with number marks:

In[2]:=
Click for copyable input
Out[2]//InputForm=

Extended-precision numbers include number marks by default:

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

Without number marks:

In[2]:=
Click for copyable input
Out[2]//InputForm=
New in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »