bigdecimal/rounding
Types
pub type RoundingMode {
Ceiling
Floor
Down
Up
HalfDown
HalfUp
HalfEven
}
Constructors
-
CeilingRound towards positive infinity
-
FloorRound towards negative infinity
-
DownRound towards zero
-
UpRound away from zero
-
HalfDownRound towards nearest neighbour. Round down if both neighbours are equidistant.
-
HalfUpRound towards nearest neighbour. Round up if both neighbours are equidistant.
-
HalfEvenRound towards nearest neighbour. Round to the even one if both neighbours are equidistant.