public class PowerOfTwo
extends java.lang.Object
| Constructor and Description |
|---|
PowerOfTwo() |
| Modifier and Type | Method and Description |
|---|---|
static int |
ceilToNext(int value)
Rounds the given value to the next power of two that is greater than the value.
|
static double |
floorToNext(double value)
Rounds the given value to the next power of two that is smaller than the value.
|
static java.lang.Float |
floorToNext(java.lang.Float value)
Rounds the given value to the next power of two that is smaller than the value.
|
public static int ceilToNext(int value)
value - public static java.lang.Float floorToNext(java.lang.Float value)
value - public static double floorToNext(double value)
value -