phelps.lang

Class Floats

public class Floats extends Object

Extensions to java.lang.Float.

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

Field Summary
static floatEPSILON
If difference between two floats is less than this, then they should be considered equal.
static FloatONE
static FloatZERO
Method Summary
static FloatgetFloat(float val)
static floatparseFloat(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 .

Field Detail

EPSILON

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

ONE

public static final Float ONE

ZERO

public static final Float ZERO

Method Detail

getFloat

public static Float getFloat(float val)

parseFloat

public static float parseFloat(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 .