EngineeringForm
EngineeringForm[expr]
prints with all real numbers in expr given in engineering notation.
EngineeringForm[expr,n]
prints with numbers given to n‐digit precision.
Details and Options
- In "engineering notation" the exponent is always arranged to be a multiple of 3.
- The following options can be given:
-
DigitBlock Infinity number of digits between breaks ExponentFunction Automatic function to apply to exponents ExponentStep 3 steps by which exponents can increase NumberFormat Automatic function used to assemble mantissa, base, and exponent NumberMultiplier "×" string to use to indicate multiplication NumberPadding {"",""} strings to use for left and right padding NumberPoint "." decimal point string NumberSeparator {",", " "} string to insert at breaks between blocks NumberSigns {"-",""} strings to use for signs of negative and positive numbers SignPadding False whether to insert padding after the sign - You can mix EngineeringForm and BaseForm.
- The typeset form of EngineeringForm[expr] is interpreted the same as expr when used in input. »
- When an input evaluates to EngineeringForm[expr], EngineeringForm does not appear in the output. »
Examples
open allclose allScope (5)
Options (11)
DigitBlock (2)
ExponentFunction (1)
NumberFormat (1)
NumberSigns (1)
Properties & Relations (5)
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:
Represent the number in base 2:
Reconstruct the base 10 number:
Affect the display of numbers in MatrixForm or TableForm:
The typeset form of EngineeringForm[expr] is interpreted the same as expr when used in input:
Copy the output and paste it into an input cell. The 1.234×103 is interpreted as 1234.:
When an input evaluates to EngineeringForm[expr], EngineeringForm does not appear in the output:
Out is assigned the value 1234., not EngineeringForm[1234.]:
Possible Issues (2)
Placeholder zeros may be needed if the requested precision is small:
Even when an output omits EngineeringForm from the top level, it is not stripped from subexpressions:
The output does not have EngineeringForm in it:
However, the variable e does have EngineeringForm in it, which may affect subsequent evaluations:
The product is not evaluated due to the intervening EngineeringForm:
Assign variables first and then apply EngineeringForm to the result to maintain computability:
Text
Wolfram Research (1988), EngineeringForm, Wolfram Language function, https://reference.wolfram.com/language/ref/EngineeringForm.html (updated 2003).
CMS
Wolfram Language. 1988. "EngineeringForm." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/EngineeringForm.html.
APA
Wolfram Language. (1988). EngineeringForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EngineeringForm.html