wt.iba.value
Class UnitValue.UnitNumber
java.lang.Object
java.lang.Number
wt.iba.value.UnitValue.UnitNumber
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- UnitValue
- static final class UnitValue.UnitNumber
- extends Number
Simple Number implementation whose toString() handles precision in
a consistent fashion to that of the IBA view classes.
Fields inherited from class java.lang.Number |
|
value
private double value
stringValue
private String stringValue
UnitValue.UnitNumber
public UnitValue.UnitNumber(double value,
int precision,
String units,
String displayUnits)
intValue
public int intValue()
longValue
public long longValue()
floatValue
public float floatValue()
doubleValue
public double doubleValue()
byteValue
public byte byteValue()
shortValue
public short shortValue()
toString
public String toString()
- Returns value as a ratio.