Difference between revisions of "SIGN()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=SIGN()=
 
 
 
 
==Class==
 
==Class==
 
Numeric Data
 
Numeric Data
Line 42: Line 39:
 
         -1
 
         -1
 
? sign(0)
 
? sign(0)
          0
+
        0
 
</code>
 
</code>
  
Line 50: Line 47:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Numeric Data]]
 +
[[Category:Numeric Data Functions]]

Revision as of 09:13, 2 June 2009

Class

Numeric Data


Purpose

Function to determine the sign of a numeric value


Syntax

SIGN(<expN>)


See Also

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

Recital Database Server, Recital Mirage Server, Recital Terminal Developer