@openpit/engine
    Preparing search index...

    Variable RoundingStrategiesConst

    RoundingStrategies: {
        Banker: "banker";
        ConservativeLoss: "conservativeLoss";
        ConservativeProfit: "conservativeProfit";
        Default: "default";
        Down: "down";
        MidpointAwayFromZero: "midpointAwayFromZero";
        MidpointNearestEven: "midpointNearestEven";
        Up: "up";
    } = ...

    Named rounding strategies accepted by the *Rounded value-type factories.

    Each value is a RoundingStrategy wire string, so the object provides autocomplete without forcing callers off the plain string form; the literals remain assignable.

    Type Declaration

    • ReadonlyBanker: "banker"
    • ReadonlyConservativeLoss: "conservativeLoss"

      Round toward negative infinity, conservative for loss.

    • ReadonlyConservativeProfit: "conservativeProfit"

      Round toward negative infinity, conservative for profit.

    • ReadonlyDefault: "default"

      Midpoint nearest-even (banker's rounding).

    • ReadonlyDown: "down"

      Round toward negative infinity (floor).

    • ReadonlyMidpointAwayFromZero: "midpointAwayFromZero"

      Round midpoint values away from zero.

    • ReadonlyMidpointNearestEven: "midpointNearestEven"

      Round midpoint values toward the nearest even last digit.

    • ReadonlyUp: "up"

      Round toward positive infinity (ceiling).