This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

PrecisionSetPrecision

SetAccuracy

FilledSmallSquareSetAccuracy[expr, n] yields a version of expr in which all numbers have been set to have an accuracy of n digits.

FilledSmallSquare When SetAccuracy is used to increase the accuracy of a number, the number is padded with zeros. The zeros are taken to be in base 2. In base 10, the additional digits are usually not zero.

FilledSmallSquareSetAccuracy returns an arbitrary-precision number even if the number of significant digits obtained will be less than $MachinePrecision.

FilledSmallSquare When expr contains machine-precision numbers, SetAccuracy[expr, n] can give results which differ from one computer system to another.

FilledSmallSquareSetAccuracy will first expose any hidden extra digits in the internal binary representation of a number, and only after these are exhausted add trailing zeros.

FilledSmallSquare0.004``25 generates a number with all trailing digits zero and accuracy 25 on any computer system.

FilledSmallSquareSetAccuracy[expr, n] does not modify expr itself.

FilledSmallSquare See The Mathematica Book: Section 3.1.5.

FilledSmallSquare See also: N, Accuracy, SetPrecision.

Further Examples

PrecisionSetPrecision