Here you can find the source of floatToLong(float[] values)
public static long[] floatToLong(float[] values)
//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; } }