List of utility methods to do Number Max Value
int | maxFill(final int n, final float f) max Fill return Math.min((int) Math.ceil((double) ((float) n * f)), n - 1); |
float | maxFloat(float var1, float var2) max Float return var1 > var2 ? var1 : var2; |
float | maximum(float first, float second) maximum if (first < second) return second; else return first; |
float | Maximum(float x, float y) Returns the maximum of two float values if (x > y) return (x); else return (y); |
int | maxInt(float a, float b) Maximum value rounded up. return ceil(max(a, b));
|
float | maxLimit(float value, float max) max Limit return value > max ? max : value;
|
long | maxVal(int numbits) max Val return ~(~0L << numbits);
|
long | maxValue(byte length) max Value return (long) Math.pow(2, Byte.SIZE * length - 1); |
long | maxValue(int bits) Get the maximum value representable in a bits bit signed integer. assert 0 < bits && bits <= 64; return mask(bits - 1); |
long | maxValueUnsigned(int bits) Get the maximum value representable in a bits bit unsigned integer. return getNbitNumberLong(bits);
|