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