Difference between revisions of "Documentation/How Tos/Calc: FIXED function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (talk | contribs) m (Robot: Automated text replacement %s) |
OOoWikiBot (talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 18: | Line 18: | ||
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
− | * [[Documentation/How_Tos/Calc: TEXT function|TEXT]] | + | * [[Documentation/How_Tos/Calc: TEXT function|TEXT]] |
− | * [[Documentation/How_Tos/Calc: DOLLAR function|DOLLAR]] | + | * [[Documentation/How_Tos/Calc: DOLLAR function|DOLLAR]] |
− | * [[Documentation/How_Tos/Calc: Text functions|Text functions]] | + | * [[Documentation/How_Tos/Calc: Text functions|Text functions]] |
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
Revision as of 14:09, 26 February 2009
FIXED
Returns a number as text with a specified format.
Syntax:
FIXED(number; decimals; omitseparators)
- returns text representing number with decimals decimal places. If omitseparators (optional) is TRUE thousands separators will be omitted. In the absence of omitseparators thousands separators are included.
- The thousands separator character used is dependent on your locale settings; see Tools - Options - Language Settings - Languages.
Example:
FIXED(1234567.89; 3)
- returns 1,234,567.890 as text, if your locale uses a comma as the thousands separator.
FIXED(1234567.89; 3; TRUE)
- returns 1234567.890 as text.
Template:Documentation/SeeAlso
Issues:
- Because it depends on locale settings, FIXED should not be regarded as portable.
- The omitseparators parameter appears in the formula bar as a number, rather than TRUE or FALSE. This does not affect its function.