Changes
Jump to navigation
Jump to search
Sign
,Created page with "Returns a numerical value, indicating the sign of the value of the specified numerical expression. A value of 1 is returned for a positive value, -1 is returned for a negativ..."
Returns a numerical value, indicating the sign of the value of the specified numerical expression.
A value of 1 is returned for a positive value, -1 is returned for a negative value, and 0 is returned for the value of 0.
==== Usage ====
<syntaxhighlight>Sign(Value)</syntaxhighlight>
Where: [[Value]] - a numerical expression
==== Example ====
<syntaxhighlight>Sign(5) will return a value of 1
Sign(-2.85) will return a value of -1
Sign(0) will return a value of 0</syntaxhighlight>
[[Category:Math and Trig]]
A value of 1 is returned for a positive value, -1 is returned for a negative value, and 0 is returned for the value of 0.
==== Usage ====
<syntaxhighlight>Sign(Value)</syntaxhighlight>
Where: [[Value]] - a numerical expression
==== Example ====
<syntaxhighlight>Sign(5) will return a value of 1
Sign(-2.85) will return a value of -1
Sign(0) will return a value of 0</syntaxhighlight>
[[Category:Math and Trig]]