Difference between revisions of "Documentation/How Tos/Calc: SIGN function"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 109: Line 109:
 
: returns <tt>'''0'''</tt>.
 
: returns <tt>'''0'''</tt>.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: ABS function|ABS]]
 
* [[Documentation/How_Tos/Calc: ABS function|ABS]]
  

Revision as of 12:58, 16 July 2018


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.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_SIGN_function&oldid=243272"
Views
Personal tools
Navigation
Tools