This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Numerical Computation / Numerical Precision  /
Accuracy

  • Accuracy[ x ] gives the number of digits to the right of the decimal point in the number x.
  • If x is not a number, Accuracy[ x ] gives the minimum value of Accuracy for all the numbers that appear in x.
  • Accuracy gives Infinity when applied to exact numbers, such as integers.
  • Accuracy assumes a precision of $MachinePrecision when applied to machine-precision numbers.
  • Accuracy can yield a negative result.
  • See the Mathematica book: Section 3.1.4.
  • See also: Precision, N, Chop, SetAccuracy.

    Further Examples

    The Accuracy of an exact number is infinite.

    In[1]:=

    Out[1]=

    The Accuracy of a machine real number depends on the value of $MachinePrecision on your computer.

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]=

    However, the Accuracy of arbitrary-precision real numbers is machine-independent.

    In[4]:=

    Out[4]=