Display of Numbers

The Wolfram Language provides flexible mechanisms for full typeset formatting of numbers of any magnitude and precision, to optimize readability, portability and external compatibility.

NumberForm general control of number display

PaddedForm insert padding to align numbers

DecimalForm display without scientific notation

ScientificForm scientific notation

EngineeringForm engineering notation

PercentForm display as a percentage

InputForm, OutputForm plain text versions of numbers

CForm, FortranForm C and Fortran-like "E" notation

AccountingForm negative numbers in (), etc.

BaseForm display in base b

IntegerName name of an integer (e.g. "thirty-five")

NumberMarks option to include precision information with ` marks

$NumberMarks globally determine whether to use ` marks for number portability

DefaultPrintPrecision option for default print precision of machine numbers

ScientificNotationThreshold option for threshold for scientific notation

N compute to specified precision

Displaying Quantities

QuantityForm specify how units etc. should be displayed