Import std.math.big.decimal
RoundingMode
enum
Public Enum RoundingMode
How rounding treats what it drops.
std/math/big/decimal.fb, line 45
-
To the nearest, and a half to the even one, as banks round: 2.5 to 2, and 3.5 to 4.
-
To the nearest, and a half away from 0: 2.5 to 3, and -2.5 to -3.
-
To the nearest, and a half toward 0: 2.5 to 2, and -2.5 to -2.
-
Away from 0: 2.1 to 3, and -2.1 to -3.
-
Toward 0, dropping the rest: 2.9 to 2, and -2.9 to -2.
-
Up: 2.1 to 3, and -2.9 to -2.
-
Down: 2.9 to 2, and -2.1 to -3.
Report an issue with this page or with FutureBlitz on GitHub.