prints with all real numbers in expr given in engineering notation.


prints with numbers given to ndigit precision.

Details and Options


open allclose all

Basic Examples  (2)

Different numbers in the engineering notation:

Using 3 digits of precision:

Scope  (5)

The default display for a machine number:

Display more digits than the default:

Display fewer digits:

Format a complex number:

Format a high-precision number:

Use fewer digits:

Change the display of numbers in a vector:

A matrix:

Change the display of inexact numbers in a mixed expression:

Use 4 precise digits:

Options  (11)

DigitBlock  (2)

A default integer:

Digits separated in blocks of length 3:

Use 5digit blocks with spaces as separators:

ExponentFunction  (1)

Compute approximate powers of :

Restrict exponents to multiples of 3:

Include exponents only for powers greater than 10:

ExponentStep  (1)

Default formatting to 10 digits:

Restrict exponent to multiples of 6:

NumberFormat  (1)

Display numbers in a Fortranlike form:

Display only the mantissas:

Display only the exponents after converting to scientific form:

NumberMultiplier  (1)

Use the default multiplier ×:

Use an asterisk (*) instead:

NumberPadding  (1)

The default does not pad on the left or right:

Pad with spaces on the left:

NumberPoint  (1)

The default is a period:

Display with a comma (,) instead:

NumberSeparator  (1)

The default separator is a comma (,):

Use spaces instead:

NumberSigns  (1)

The default includes negative signs but not positive signs:

Include positive signs as well:

Use words instead of symbols:

SignPadding  (1)

The default pads before signs:

Pad between signs and numbers instead:

Properties & Relations  (3)

EngineeringForm uses exponents that are multiples of 3 by default:

NumberForm and PaddedForm include exponents higher than 5 by default:

ScientificForm has one digit to the left of the decimal:

AccountingForm does not have exponents:

Convert a number to base 2:

Represent the number in base 2:

Reconstruct the base 10 number:

Affect the display of numbers in MatrixForm or TableForm:

Possible Issues  (1)

Placeholder zeros may be needed if the requested precision is small:

Introduced in 1988
Updated in 2003