({{, (RefLink[EngineeringForm, paclet:ref/EngineeringForm])[expr]
prints with all real numbers in expr given in engineering notation. }, {, (RefLink[EngineeringForm, paclet:ref/EngineeringForm])[expr,n]
prints with numbers given to n-digit precision. }})

OpenersNotesSection(Spacer1)Details and Options

In "engineering notation" the exponent is always arranged to be a multiple of 3.

The following options can be given:

You can mix (RefLink[EngineeringForm, paclet:ref/EngineeringForm]) and (RefLink[BaseForm, paclet:ref/BaseForm]).

(RefLink[EngineeringForm, paclet:ref/EngineeringForm]) acts as a "wrapper", which affects printing, but not evaluation.

OpenersPrimaryExamplesSection(Spacer1)Examples  (22)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Different numbers in the engineering notation:

EngineeringForm[{123450000.0,0.00012345,123.45}]

Using 3 digits of precision:

EngineeringForm[{123450000.0,0.00012345,123.45},3]

OpenersExampleSection1(Spacer1)Scope  (5)

The default display for a machine number:

nE=N[E]

Display more digits than the default:

EngineeringForm[nE,10]

Display fewer digits:

EngineeringForm[nE,2]

Format a complex number:

EngineeringForm[RandomComplex[]]

Format a high-precision number:

EngineeringForm[N[Pi^10,20]]

Use fewer digits:

EngineeringForm[N[Pi^10,20],10]

Change the display of numbers in a vector:

RandomReal[2000,5]

EngineeringForm[%,4]

A matrix:

RandomReal[2000,{3,3}]

EngineeringForm[%,4]

Change the display of inexact numbers in a mixed expression:

y=150.Sin[x/7.]

EngineeringForm[y]

Use 4 precise digits:

EngineeringForm[y,4]

OpenersExampleSection2(Spacer1)Options  (11)

OpenersExampleSubsection0(Spacer1)DigitBlock  (2)

A default integer:

EngineeringForm[10^9]

Digits separated in blocks of length 3:

EngineeringForm[10^9,DigitBlock->3]

Use 5-digit blocks with spaces as separators:

EngineeringForm[30!,DigitBlock->5,NumberSeparator->" "]

OpenersExampleSubsection1(Spacer1)ExponentFunction  (1)

Compute approximate powers of e:

p=N[E^Range[10,50,10]]

Restrict exponents to multiples of 3:

EngineeringForm[p,ExponentFunction->(3Quotient[#,3]&)]

Include exponents only for powers greater than 10:

EngineeringForm[p,ExponentFunction->(If[-10<#<10,Null,#]&)]

OpenersExampleSubsection2(Spacer1)ExponentStep  (1)

Default formatting to 10 digits:

EngineeringForm[1234567890.,10]

Restrict exponent to multiples of 6:

EngineeringForm[1234567890.,10,ExponentStep->6]

OpenersExampleSubsection3(Spacer1)NumberFormat  (1)

Display numbers in a Fortran-like form:

v={8.^5,11.^7,13.^9}

EngineeringForm[v,NumberFormat->(Row[{#1,"e",#3}]&)]

Display only the mantissas:

EngineeringForm[v,NumberFormat->(#1&)]

Display only the exponents after converting to scientific form:

EngineeringForm[v,NumberFormat->(#3&),ExponentFunction->(#&)]

OpenersExampleSubsection4(Spacer1)NumberMultiplier  (1)

Use the default multiplier ×:

EngineeringForm[1.25*10^8]

Use an asterisk (*) instead:

EngineeringForm[1.25*10^8,NumberMultiplier->"*"]

OpenersExampleSubsection5(Spacer1)NumberPadding  (1)

The default does not pad on the left or right:

EngineeringForm[{-67.0,6.888,699.999},4]

Pad with spaces on the left:

EngineeringForm[{-67.0,6.888,699.999},4,NumberPadding->{" ",""}]

OpenersExampleSubsection6(Spacer1)NumberPoint  (1)

The default is a period:

EngineeringForm[123.45]

Display with a comma (,) instead:

EngineeringForm[123.45,NumberPoint->","]

OpenersExampleSubsection7(Spacer1)NumberSeparator  (1)

The default separator is a comma (,):

EngineeringForm[30!,DigitBlock->3]

Use spaces instead:

EngineeringForm[30!,DigitBlock->3,NumberSeparator->" "]

OpenersExampleSubsection8(Spacer1)NumberSigns  (1)

The default includes negative signs but not positive signs:

EngineeringForm[{-1/3.,2/3.}]

Include positive signs as well:

EngineeringForm[{-1/3.,2/3.},NumberSigns->{"-","+"}]

Use words instead of symbols:

EngineeringForm[{-1/3.,2/3.},NumberSigns->{"minus ","plus "}]

OpenersExampleSubsection9(Spacer1)SignPadding  (1)

The default pads before signs:

EngineeringForm[{-1.2345,2.4680},10,NumberPadding->{" "," "}]

Pad between signs and numbers instead:

EngineeringForm[{-1.2345,2.4680},10,SignPadding->True,NumberPadding->{" "," "}]

OpenersExampleSection3(Spacer1)Properties & Relations  (3)

(RefLink[EngineeringForm, paclet:ref/EngineeringForm]) uses exponents that are multiples of 3 by default:

EngineeringForm[N[E^Range[10,20,2]],10]

(RefLink[NumberForm, paclet:ref/NumberForm]) and (RefLink[PaddedForm, paclet:ref/PaddedForm]) include exponents higher than 5 by default:

NumberForm[N[E^Range[10,20,2]],10]

PaddedForm[N[E^Range[10,20,2]],10]

(RefLink[ScientificForm, paclet:ref/ScientificForm]) has one digit to the left of the decimal:

ScientificForm[N[E^Range[10,20,2]],10]

(RefLink[AccountingForm, paclet:ref/AccountingForm]) does not have exponents:

AccountingForm[N[E^Range[10,20,2]],10]

Convert a number to base 2:

b2=BaseForm[123.45,2]

Represent the number in base 2:

EngineeringForm[b2]

Reconstruct the base 10 number:

(2^^1.111011011100110011)2^6

Affect the display of numbers in (RefLink[MatrixForm, paclet:ref/MatrixForm]) or (RefLink[TableForm, paclet:ref/TableForm]):

m=RandomReal[10^8,{3,2}];

{MatrixForm[m],EngineeringForm[MatrixForm[m],3]}

OpenersExampleSection4(Spacer1)Possible Issues  (1)

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

EngineeringForm[12345.6,3,ExponentFunction->(If[-5<#<5,Null,#]&)]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ScientificForm, paclet:ref/ScientificForm])  ▪  (RefLink[NumberForm, paclet:ref/NumberForm])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Output Formats for Numbers, paclet:tutorial/OutputFormatsForNumbers])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Display of Numbers, paclet:guide/DisplayOfNumbers])}})}})