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