Here you can find the source of floatToBoolean(float f)
public static boolean floatToBoolean(float f)
//package com.java2s; //License from project: LGPL public class Main { public static boolean floatToBoolean(float f) { return f != 0 ? true : false; }//from w ww. j av a 2 s . c om }