IntUtils extension
Provides miscellaneous extension methods on int.
- on
Methods
-
ceilToMultipleOf(
int multipleOf) → int -
Available on int, provided by the IntUtils extension
Rounds a non-negative integer up to nearest multiple ofmultipleOf
that is greater-than-or-equal-to this integer. -
floorToMultipleOf(
int multipleOf) → int -
Available on int, provided by the IntUtils extension
Rounds a non-negative integer down to nearest multiple ofmultipleOf
that is less-than-or-equal-to this integer. -
roundToMultipleOf(
int multipleOf) → int -
Available on int, provided by the IntUtils extension
Rounds a non-negative integer to the nearest multiple ofmultipleOf
.