phelps.lang

Class Doubles

public class Doubles extends Object

Extensions to java.lang.Double.

Version: $Revision: 1.1 $ $Date: 2003/02/02 11:55:19 $

Field Summary
static doubleEPSILON
If difference between two doubles is less than this, then they should be considered equal.
static DoubleONE
static DoubleZERO
Method Summary
static doubleparseDouble(String value, double defaultval)
Tries to parse value as an double, but if String is null or can't be parsed as an int returns defaultval .

Field Detail

EPSILON

public static final double EPSILON
If difference between two doubles is less than this, then they should be considered equal.

ONE

public static final Double ONE

ZERO

public static final Double ZERO

Method Detail

parseDouble

public static double parseDouble(String value, double defaultval)
Tries to parse value as an double, but if String is null or can't be parsed as an int returns defaultval .