NumericUtil
NumericUtil
class provides utility methods for numerical operations.
Methods
round(value: Double, places: Integer): Double
Rounds a number to the specified number of decimal places using the default rounding mode (HALF_UP).
roundUp(value: Double, places: Integer): Double
Rounds a number up to the specified number of decimal places, always rounding up to the nearest value.
roundDown(value: Double, places: Integer): Double
Rounds a number down to the specified number of decimal places, always rounding down to the nearest value.
Last updated