Difference between revisions of "SIGN()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
m (Text replace - "Recital" to "Lianja")
Line 40: Line 40:
  
 
==Products==
 
==Products==
Recital, Recital Server
+
Lianja, Lianja Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Numeric Data]]
 
[[Category:Numeric Data]]
 
[[Category:Numeric Data Functions]]
 
[[Category:Numeric Data Functions]]

Revision as of 01:22, 9 December 2012

Purpose

Function to determine the sign of a numeric value


Syntax

SIGN(<expN>)


See Also

ABS(), IIF(), INT(), ROUND()


Description

The SIGN() function is used to determine the sign of a numeric value. The SIGN() function will return the following values:


<expN> Value Return Value
Positive 1
Negative -1
Zero 0


Example

? sign(9876.78)
         1
? sign(-87.9)
        -1
? sign(0)
         0


Products

Lianja, Lianja Server