Sgn: Difference between revisions
Jump to navigation
Jump to search
(edit) |
No edit summary |
||
Line 8: | Line 8: | ||
SGN is affected by the value of the [[BRConfig.sys]] [[RD]] specification. For instance, if RD were set to 6 (the default), the value returned by the following SGN function would be 1 (positive). But if RD were set to 3, the returned value would be 0: | SGN is affected by the value of the [[BRConfig.sys]] [[RD]] specification. For instance, if RD were set to 6 (the default), the value returned by the following SGN function would be 1 (positive). But if RD were set to 3, the returned value would be 0: | ||
<noinclude> | |||
[[Category:Internal Functions]] | |||
</noinclude> |
Revision as of 16:48, 18 January 2012
Sgn(X)
The Sgn internal function returns a value which identifies whether a numeric value is negative, positive or zero. The returned values are as follows:
-1 if X is negative
0 if X is zero
1 if X is positive
SGN is affected by the value of the BRConfig.sys RD specification. For instance, if RD were set to 6 (the default), the value returned by the following SGN function would be 1 (positive). But if RD were set to 3, the returned value would be 0: