Skip to content
FutureBlitz

    Install

    Import std.math.big.decimal

    RoundingMode

    std.math.big.decimal

    enum

    Public Enum RoundingMode

    How rounding treats what it drops.

    std/math/big/decimal.fb, line 45

    • HALF_EVEN enum member #

      To the nearest, and a half to the even one, as banks round: 2.5 to 2, and 3.5 to 4.

    • HALF_UP enum member #

      To the nearest, and a half away from 0: 2.5 to 3, and -2.5 to -3.

    • HALF_DOWN enum member #

      To the nearest, and a half toward 0: 2.5 to 2, and -2.5 to -2.

    • UP enum member #

      Away from 0: 2.1 to 3, and -2.1 to -3.

    • DOWN enum member #

      Toward 0, dropping the rest: 2.9 to 2, and -2.9 to -2.

    • CEILING enum member #

      Up: 2.1 to 3, and -2.9 to -2.

    • FLOOR enum member #

      Down: 2.9 to 2, and -2.1 to -3.

    Report an issue with this page or with FutureBlitz on GitHub.