AccountingForm
✖
AccountingForm
Details 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 - The typeset form of AccountingForm[expr] is interpreted the same as expr when used in input. »
- When an input evaluates to AccountingForm[expr], AccountingForm does not appear in the output. »
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (5)Survey of the scope of standard use cases
The default display for a machine number:

https://wolfram.com/xid/09byyae8a-3tuq2

Display more digits than the default:

https://wolfram.com/xid/09byyae8a-g5rxex


https://wolfram.com/xid/09byyae8a-ih1j9z


https://wolfram.com/xid/09byyae8a-e2kf29

Format a high-precision number:

https://wolfram.com/xid/09byyae8a-b1ylnq


https://wolfram.com/xid/09byyae8a-da2vr1

Change the display of numbers in a vector:

https://wolfram.com/xid/09byyae8a-c84b3w


https://wolfram.com/xid/09byyae8a-hp8brw


https://wolfram.com/xid/09byyae8a-bips1r


https://wolfram.com/xid/09byyae8a-gjobz1

Change the display of inexact numbers in a mixed expression:

https://wolfram.com/xid/09byyae8a-f4ifyf


https://wolfram.com/xid/09byyae8a-ggqubo

Options (10)Common values & functionality for each option
DigitBlock (2)
ExponentFunction (1)
NumberFormat (1)
NumberMultiplier (1)
NumberPadding (1)
NumberPoint (1)
NumberSeparator (1)
NumberSigns (1)
SignPadding (1)
The default pads before signs:

https://wolfram.com/xid/09byyae8a-dthdq1

Pad between signs and numbers instead:

https://wolfram.com/xid/09byyae8a-fjfuge

Pad with spaces before the left sign and with zeros between the number and the right sign:

https://wolfram.com/xid/09byyae8a-f2i9uv

Properties & Relations (4)Properties of the function, and connections to other functions
AccountingForm does not have exponents:

https://wolfram.com/xid/09byyae8a-mgsdj

NumberForm and PaddedForm have exponents for powers greater than 5:

https://wolfram.com/xid/09byyae8a-clh2nw


https://wolfram.com/xid/09byyae8a-i8lkfv

ScientificForm has a single digit to the left of the decimal:

https://wolfram.com/xid/09byyae8a-c4j4dm

EngineeringForm uses exponents that are multiples of 3:

https://wolfram.com/xid/09byyae8a-b0o9lf

Affect the display of numbers in TableForm or MatrixForm:

https://wolfram.com/xid/09byyae8a-tm0nm

https://wolfram.com/xid/09byyae8a-c7u65p

The typeset form of AccountingForm[expr] is interpreted the same as expr when used in input:

https://wolfram.com/xid/09byyae8a-5znmkx

Copy the output and paste it into an input cell. The (2) is interpreted as -2:

https://wolfram.com/xid/09byyae8a-dus1m0

When an input evaluates to AccountingForm[expr], AccountingForm does not appear in the output:

https://wolfram.com/xid/09byyae8a-0syqqh

Out is assigned the value 1.`*^7, not AccountingForm[10.^7]:

https://wolfram.com/xid/09byyae8a-ltf2yk

Possible Issues (2)Common pitfalls and unexpected behavior
Placeholder zeros may be needed if the requested precision is small:

https://wolfram.com/xid/09byyae8a-bnt2gt


Even when an output omits AccountingForm from the top level, it is not stripped from subexpressions:

https://wolfram.com/xid/09byyae8a-vcpxjb

The output does not have AccountingForm in it:

https://wolfram.com/xid/09byyae8a-6eq7sy

However, the variable e does have AccountingForm in it, which may affect subsequent evaluations:

https://wolfram.com/xid/09byyae8a-vrwgs3

The product is not evaluated due to the intervening AccountingForm:

https://wolfram.com/xid/09byyae8a-lzryxd

Assign variables first and then apply AccountingForm to the result to maintain computability:

https://wolfram.com/xid/09byyae8a-553agr


https://wolfram.com/xid/09byyae8a-1yk5rp

Wolfram Research (1991), AccountingForm, Wolfram Language function, https://reference.wolfram.com/language/ref/AccountingForm.html (updated 2017).
Text
Wolfram Research (1991), AccountingForm, Wolfram Language function, https://reference.wolfram.com/language/ref/AccountingForm.html (updated 2017).
Wolfram Research (1991), AccountingForm, Wolfram Language function, https://reference.wolfram.com/language/ref/AccountingForm.html (updated 2017).
CMS
Wolfram Language. 1991. "AccountingForm." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/AccountingForm.html.
Wolfram Language. 1991. "AccountingForm." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/AccountingForm.html.
APA
Wolfram Language. (1991). AccountingForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AccountingForm.html
Wolfram Language. (1991). AccountingForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AccountingForm.html
BibTeX
@misc{reference.wolfram_2025_accountingform, author="Wolfram Research", title="{AccountingForm}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/AccountingForm.html}", note=[Accessed: 01-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_accountingform, organization={Wolfram Research}, title={AccountingForm}, year={2017}, url={https://reference.wolfram.com/language/ref/AccountingForm.html}, note=[Accessed: 01-April-2025
]}