|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
NumberForm
NumberForm[expr, n]
prints with approximate real numbers in expr given to n-digit precision.
Details and OptionsDetails and Options
- NumberForm[expr, {n, f}] prints with approximate real numbers having n digits, with f digits to the right of the decimal point.
- NumberForm works on integers as well as approximate real numbers.
- The following options can be given:
-
DigitBlock Infinity number of digits between breaks ExponentFunction Automatic function to apply to exponents ExponentStep 1 steps by which exponents can increase NumberFormat Automatic function used to assemble the mantissa, base, and exponent NumberMultiplier "×" string to use to indicate multiplication NumberPadding {"","0"} 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 - All options except ExponentFunction and ExponentStep apply to integers as well as approximate real numbers.
- You can mix NumberForm and BaseForm.
- NumberForm acts as a "wrapper", which affects printing, but not evaluation.
New in 1 | Last modified in 3
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
