• Calculates the mathematically correct modulo of a mod b.

    Parameters

    • a: number

      Number

    • b: number

      Number

    Returns number

    Example

    // Returns -1 (instead of 2, which is what 5 % -3 would return)
    const mod = Chalkboard.numb.mod(5, -3);

Generated using TypeDoc