Here you can find the source of floatToBoolean(float[] values)
public static boolean[] floatToBoolean(float[] values)
//package com.java2s; public class Main { public static boolean[] floatToBoolean(float[] values) { if (values == null) { return null; }// www.jav a 2s . co m boolean[] results = new boolean[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (values[i] != 0); } return results; } }