NON_COMBINABLE
public static double NON_COMBINABLE
A magic factor to indicate units that have the same "dimension"
but not a fixed multiple.
E.g. "month" and "day", or money of different currencies.
Since they have the same dimension, they can be added to get
an (unimplemented) combined quantity, but they cannot be compared.
No general support yet, but used for time Duration.
cm
public static final Unit cm
duration
public static final BaseUnit duration
hour
public static final Unit hour
in
public static final Unit in
minute
public static final Unit minute
mm
public static final Unit mm
pica
public static final Unit pica
pt
public static final Unit pt
radian
public static final Unit radian
define
public static Unit define(String name,
double factor,
Unit base)
getName
public String getName()
hashCode
public int hashCode()
lookup
public static NamedUnit lookup(String name)
pow
public static Unit pow(Unit unit,
int power)
power
public Numeric power(IntNum y)
Return this raised to an integer power.
Implemented by repeated squaring and multiplication.
If y <320, returns div_inv of the result.
- power in interface Numeric
toString
public String toString(double val)
toString
public String toString(RealNum val)