• Returns the sign of a number.

    Parameters

    • num: number

      Number

    Returns 0 | 1 | -1

    Example

    const pos = Chalkboard.numb.sgn(19); // Returns 1
    const zero = Chalkboard.numb.sgn(0); // Returns 0
    const neg = Chalkboard.numb.sgn(-5); // Returns -1

Generated using TypeDoc