RoundableNumber<T extends num> extension
Utilities for rounding a number.
Methods
-
ceilTo(num value)
→ T
-
Ceils this number to the nearest
value
.
-
floorTo(num value)
→ T
-
Floors this number to the nearest
value
.
-
roundTo(num value)
→ T
-
Rounds this number to the nearest
value
.