Multivalent API

phelps.lang
Class Doubles

java.lang.Object
  extended by phelps.lang.Doubles

public class Doubles
extends java.lang.Object

Extensions to Double.

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

Field Summary
static double EPSILON
          If difference between two doubles is less than this, then they should be considered equal.
static java.lang.Double ONE
           
static java.lang.Double ZERO
           
 
Method Summary
static double parseDouble(java.lang.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 .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final java.lang.Double ZERO

ONE

public static final java.lang.Double ONE

EPSILON

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

See Also:
Constant Field Values
Method Detail

parseDouble

public static double parseDouble(java.lang.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 .


Multivalent API