Difference between revisions of "Documentation/How Tos/Calc: SIGN 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 19: | Line 19: | ||
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
− | * [[Documentation/How_Tos/Calc: ABS function|ABS]] | + | * [[Documentation/How_Tos/Calc: ABS function|ABS]] |
− | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]] | + | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]] |
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
Revision as of 14:38, 26 February 2009
SIGN
Returns the sign of a number:- 1 if the number is positive, -1 if negative and 0 if zero.
Syntax:
SIGN(number)
- number is the number whose sign is to be determined.
Example:
SIGN(3.4)
- returns 1.
SIGN(-4.5)
- returns -1.
SIGN(0)
- returns 0.