@tgsnake/skema
    Preparing search index...

    Function bigIntMod

    • Computes the modulus of two bigint values, ensuring a non-negative result.

      This function returns the result of n mod m, always as a non-negative bigint, even if n is negative. This is useful for mathematical operations where a positive modulus is required.

      Parameters

      • n: bigint

        The dividend as a bigint.

      • m: bigint

        The divisor as a bigint.

      Returns bigint

      The non-negative remainder of n divided by m.