Mathematica 9 is now available

NumberForm

Usage

NumberForm[expr, n] prints with approximate real numbers in expr given to n-digit precision.


Notes

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
NumberFormat Automatic function used to assemble mantissa, base, 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
• All options except ExponentFunction 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.
• See Section 2.9.7.
• New in Version 1; modified in 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.