Multivalent API

phelps.lang
Class Floats

java.lang.Object
  extended by phelps.lang.Floats

public class Floats
extends java.lang.Object

Extensions to Float.

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

Field Summary
static float EPSILON
          If difference between two floats is less than this, then they should be considered equal.
static java.lang.Float ONE
           
static java.lang.Float ZERO
           
 
Method Summary
static java.lang.Float getFloat(float val)
           
static float parseFloat(java.lang.String value, float defaultval)
          Tries to parse value as an float, 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.Float ZERO

ONE

public static final java.lang.Float ONE

EPSILON

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

See Also:
Constant Field Values
Method Detail

parseFloat

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


getFloat

public static java.lang.Float getFloat(float val)

Multivalent API