sign
numeric →
sign() → numeric
Returns an integer that indicates the sign of the argument value. It returns -1 if the value is strictly negative, 0 if the value is 0 and 1 if the value is strictly positive.
Parameters
This function has no parameters.
Examples
10 | sign → 1
Kind: Function
Scope: numeric/arithmetic
Aliases: numeric-to-sign