@neutrium/decimal API - v2.2.0
    Preparing search index...

    Type Alias ModuloMode

    ModuloMode: RoundingMode | "euclid"

    Rounding rules accepted by modulo, including always-nonnegative Euclidean remainders.

    These modes are most commonly useful for modulus and remainder operations:

    Mode Description
    'up' The remainder has the opposite sign to the dividend
    'down' The remainder has the same sign as the dividend, matching JavaScript %
    'floor' The remainder has the same sign as the divisor, matching Python %
    'half-even' IEEE 754 remainder
    'euclid' The remainder is always non-negative