signum

signum

> Functions

Determines the sign of the number number.

Parameters
Return
Examples

signum(0) // 0 signum(50) // 1 signum(-12) // -1