Java Float to Long floatToLong(float[] values)

Here you can find the source of floatToLong(float[] values)

Description

float To Long

License

Open Source License

Declaration

public static long[] floatToLong(float[] values) 

Method Source Code

//package com.java2s;

public class Main {
    public static long[] floatToLong(float[] values) {
        if (values == null) {
            return null;
        }//from w w  w.jav a  2 s.  c o m

        long[] results = new long[values.length];
        for (int i = 0; i < values.length; i++) {
            results[i] = (long) values[i];
        }
        return results;
    }
}

Related

  1. floatToLong(final float value)
  2. floatToLong(float f)