|
|
|
@ -35,7 +35,7 @@ fun Float.toIntUp(): Int {
|
|
|
|
|
|
|
|
|
|
|
|
infix fun Int.upBy(step: Int): Int {
|
|
|
|
infix fun Int.upBy(step: Int): Int {
|
|
|
|
val mod = this % step
|
|
|
|
val mod = this % step
|
|
|
|
return if (mod == this) {
|
|
|
|
return if (mod == 0) {
|
|
|
|
this
|
|
|
|
this
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this - mod + step
|
|
|
|
this - mod + step
|
|
|
|
|