|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
AccountingForm
AccountingForm[expr]
prints with all numbers in expr given in standard accounting notation.
AccountingForm[expr, n]
prints with numbers given to n-digit precision.
Details and OptionsDetails and Options
- AccountingForm never uses scientific notation.
- AccountingForm uses parentheses to indicate negative 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 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 - AccountingForm acts as a "wrapper", which affects printing, but not evaluation.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
In accounting form, negative numbers and scientific notation are not used:
| In[1]:= |
Out[1]//AccountingForm= | |
New in 2
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
