Here you can find the source of floatToInt(float[] values)
public static int[] floatToInt(float[] values)
//package com.java2s; public class Main { public static int[] floatToInt(float[] values) { if (values == null) { return null; }//from www . ja va 2s . c om int[] results = new int[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (int) values[i]; } return results; } }