Difference between revisions of "SIGN()"
From Lianjapedia
Helen.george (Talk | contribs) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to determine the sign of a numeric value | Function to determine the sign of a numeric value | ||
− | |||
==Syntax== | ==Syntax== | ||
SIGN(<expN>) | SIGN(<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
[[ABS()]], [[IIF()]], [[INT()]], [[ROUND()]] | [[ABS()]], [[IIF()]], [[INT()]], [[ROUND()]] | ||
− | |||
==Description== | ==Description== | ||
The SIGN() function is used to determine the sign of a numeric value. The SIGN() function will return the following values: | The SIGN() function is used to determine the sign of a numeric value. The SIGN() function will return the following values: | ||
− | + | {| class="wikitable" width="100%" | |
− | {| class="wikitable" | + | |
!<expN> Value||Return Value | !<expN> Value||Return Value | ||
|- | |- | ||
Line 25: | Line 21: | ||
|- | |- | ||
|} | |} | ||
− | |||
− | |||
==Example== | ==Example== | ||
Line 37: | Line 31: | ||
0 | 0 | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== | ||
− | + | Lianja, Lianja Server | |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Numeric Data Functions]] | [[Category:Numeric Data Functions]] |
Latest revision as of 09:15, 4 February 2013
Purpose
Function to determine the sign of a numeric value
Syntax
SIGN(<expN>)
See Also
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