Documentation/How Tos/Calc: DOLLAR function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 08:45, 21 January 2008 by Drking (Talk | contribs)

Jump to: navigation, search


DOLLAR

Returns text representing a number in your local currency format.

Syntax:

DOLLAR(number; decimals)

returns text representing number as currency. decimals (optional, assumed to be 2 if omitted) sets the number of decimal places.
Tools - Options - Language Settings - Languages - 'Default Currency' sets the currency to be used (normally be the currency of your locale).

Example:

DOLLAR(255)

returns $255.00, if your currency is US dollars.

DOLLAR(367.456; 2)

returns $367.46, if your currency is US dollars.

See also:

FIXED

Text functions

Issues:

  • Because it depends on local settings, FIXED should not be regarded as portable.
Personal tools