public final class MathUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
roundTo(int x,
int m)
Rounds x up to the next multiple of m.
|
static long |
roundTo(long x,
int m)
Rounds x up to the next multiple of m.
|
public static long roundTo(long x,
int m)
x - the number to roundm - the multiple (must be a power of 2)public static int roundTo(int x,
int m)
x - the number to roundm - the multiple (must be a power of 2)Copyright © 2023. All rights reserved.