ecl-logo Documentation

CurrencyForm

CurrencyForm[number]cash

formats number as a monetary amount.

Details

  • By default, the function will attempt to round and use shorthand to make the numbers more digestable. This can be deactivated by setting the Unist option to Dollar and the Shorthand option to False.
  • Input
    Output
    General Options
    Attributes
  • Listable
  • Messages
  • TooLargeError: You've got too much cash to represent properly.

Examples

Basic Examples  (3)

Put the number into an easily read currency format:

Include the Units in the input:

By default, negative values are shown in parentheses:

Options  (5)

Brackets  (1)

Brackets->False displays negative values with a minus sign, rather than parentheses:

Commas  (1)

If set to False, the output will no longer have commas between each 3 orders of magnitude:

Shorthand  (1)

If set to False, the output will be rounded, but not in short hand:

Symbol  (1)

Change the symbol to place in front of the value:

Units  (1)

Change the Units that the output will be rounded to:

Attributes  (1)

Listable  (1)

Multiple numbers may be put into currency form at once:

Messages  (1)

TooLarge  (1)

If the number is larger than 1 trillion, grab that cash and run: