Difference between revisions of "SIGN()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
| (3 intermediate revisions by 2 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 | ||
| Line 15: | Line 8: | ||
==See Also== | ==See Also== | ||
| − | [[IIF()]], [[INT()]], [[ROUND()]] | + | [[ABS()]], [[IIF()]], [[INT()]], [[ROUND()]] |
| Line 42: | Line 35: | ||
-1 | -1 | ||
? sign(0) | ? sign(0) | ||
| − | + | 0 | |
</code> | </code> | ||
==Products== | ==Products== | ||
| − | Recital | + | Recital, Recital Server |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
| + | [[Category:Numeric Data]] | ||
| + | [[Category:Numeric Data Functions]] | ||
Latest revision as of 16:28, 7 December 2009
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
Recital, Recital Server