Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## phelps.lang
Class Floats

    java.lang.Object
      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 `float`s 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 `float`s 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD