# AccountingForm

AccountingForm[expr]

prints with all numbers in expr given in standard accounting notation.

AccountingForm[expr,n]

prints with numbers given to ndigit precision.

# 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 all

## Basic Examples(1)

In accounting form, negative numbers and scientific notation are not used:

## Scope(5)

The default display for a machine number:

Display more digits than the default:

Display fewer digits:

Format a complex number:

Format a high-precision number:

Use fewer digits:

Change the display of numbers in a vector:

A matrix:

Change the display of inexact numbers in a mixed expression:

## Options(10)

### DigitBlock(2)

A default integer:

Digits separated in blocks of length 3:

Use fivedigit blocks with spaces as separators:

### ExponentFunction(1)

Compute approximate powers of :

Use exponents that are multiples of 3:

Include exponents for powers greater than 10:

### NumberFormat(1)

Display three numbers in accounting form:

Display the numbers in a Fortranlike form:

### NumberMultiplier(1)

Use the default multiplier:

The default does not pad on the left or right:

Pad with spaces on the left:

### NumberPoint(1)

The default is a period:

Display with a comma (,) instead:

### NumberSeparator(1)

The default separator is a comma (,):

### NumberSigns(1)

The default uses parentheses for negative numbers:

Use negative and positive signs instead:

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

## Properties & Relations(4)

AccountingForm does not have exponents:

NumberForm and PaddedForm have exponents for powers greater than 5:

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

EngineeringForm uses exponents that are multiples of 3:

Affect the display of numbers in TableForm or MatrixForm:

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

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

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

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

## Possible Issues(2)

Placeholder zeros may be needed if the requested precision is small:

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

The output does not have AccountingForm in it:

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

The product is not evaluated due to the intervening AccountingForm:

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

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).

#### CMS

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

#### BibTeX

@misc{reference.wolfram_2022_accountingform, author="Wolfram Research", title="{AccountingForm}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/AccountingForm.html}", note=[Accessed: 21-March-2023 ]}

#### BibLaTeX

@online{reference.wolfram_2022_accountingform, organization={Wolfram Research}, title={AccountingForm}, year={2017}, url={https://reference.wolfram.com/language/ref/AccountingForm.html}, note=[Accessed: 21-March-2023 ]}