Java Float to Boolean floatToBoolean(float f)

Here you can find the source of floatToBoolean(float f)

Description

float To Boolean

License

LGPL

Declaration

public static boolean floatToBoolean(float f) 

Method Source Code

//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
}

Related

  1. floatToboolean(final float value)
  2. floatToBoolean(float[] values)