Function modp

  • Find the remainder of x/y with +ve sign (euclidean division).

    Parameters

    • x: bigint

      dividend

    • y: bigint

      divisor

    Returns bigint

    x/y>0: floor(x % y), x/y<0: ceil(x % y)

Generated using TypeDoc