Here you can find the source of doubleToBoolean(double d)
public static boolean doubleToBoolean(double d)
//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*/ }