DefaultPrintPrecision
is an option for NumberForm, DecimalForm and related functions that specifies the default number of digits of precision with which to print machine numbers.
Details
- With the setting DefaultPrintPrecisionn, machine real numbers in NumberForm print with n significant digits of precision.
Examples
open allclose allBasic Examples (1)
Scope (2)
Use DefaultPrintPrecision with NumberForm:
Set the value of the option DefaultPrintPrecision in DecimalForm:
DecimalForm now typesets machine reals with 12 digits:
Reset the option to its Automatic value:
Properties & Relations (1)
Printing precision can also be specified with an argument of NumberForm, DecimalForm, etc:
When both the argument and the option are given, the argument takes precedence:
Text
Wolfram Research (2017), DefaultPrintPrecision, Wolfram Language function, https://reference.wolfram.com/language/ref/DefaultPrintPrecision.html.
CMS
Wolfram Language. 2017. "DefaultPrintPrecision." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DefaultPrintPrecision.html.
APA
Wolfram Language. (2017). DefaultPrintPrecision. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DefaultPrintPrecision.html