Returns the sign of a number.
Number
const pos = Chalkboard.numb.sgn(19); // Returns 1const zero = Chalkboard.numb.sgn(0); // Returns 0const neg = Chalkboard.numb.sgn(-5); // Returns -1 Copy
const pos = Chalkboard.numb.sgn(19); // Returns 1const zero = Chalkboard.numb.sgn(0); // Returns 0const neg = Chalkboard.numb.sgn(-5); // Returns -1
Generated using TypeDoc
Returns the sign of a number.