Java Double to Boolean doubleToBoolean(double d)

Here you can find the source of doubleToBoolean(double d)

Description

double To Boolean

License

LGPL

Declaration

public static boolean doubleToBoolean(double d) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static boolean doubleToBoolean(double d) {
        return d != 0 ? true : false;
    }/*from ww w. ja v  a  2s  .c om*/
}

Related

  1. doubleToBoolean(double value)
  2. doubleToBoolean(double[] values)
  3. doubleToboolean(final double value)