Java Utililty Methods Float to Long

List of utility methods to do Float to Long

Description

The list of methods to do Float to Long are organized into topic(s).

Method

LongfloatToLong(final float value)
float To Long
return (long) value;
LongfloatToLong(float f)
float To Long
if (f >= Long.MIN_VALUE && f <= Long.MAX_VALUE) {
    return (long) f;
return null;
long[]floatToLong(float[] values)
float To Long
if (values == null) {
    return null;
long[] results = new long[values.length];
for (int i = 0; i < values.length; i++) {
    results[i] = (long) values[i];
return results;
...