$MaxPrecision

$MaxPrecision

gives the maximum number of digits of precision to be allowed in arbitraryprecision numbers.

Details

Examples

open allclose all

Basic Examples  (2)

Limit a calculation to use at most 100 digits of precision:

Do a computation with fixed 24 digit precision:

Applications  (1)

Iterate a map using fixed precision:

If the precision is not fixed, it eventually drops to zero in the 100 iterations:

Possible Issues  (1)

When $MaxPrecision is set, some computations may not get correct results:

The actual value is much smaller:

Wolfram Research (1996), $MaxPrecision, Wolfram Language function, https://reference.wolfram.com/language/ref/$MaxPrecision.html (updated 2003).

Text

Wolfram Research (1996), $MaxPrecision, Wolfram Language function, https://reference.wolfram.com/language/ref/$MaxPrecision.html (updated 2003).

CMS

Wolfram Language. 1996. "$MaxPrecision." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/$MaxPrecision.html.

APA

Wolfram Language. (1996). $MaxPrecision. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$MaxPrecision.html

BibTeX

@misc{reference.wolfram_2023_$maxprecision, author="Wolfram Research", title="{$MaxPrecision}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/$MaxPrecision.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_$maxprecision, organization={Wolfram Research}, title={$MaxPrecision}, year={2003}, url={https://reference.wolfram.com/language/ref/$MaxPrecision.html}, note=[Accessed: 19-March-2024 ]}