Unitpublic class UnitRatio extends CompoundUnit
| Constructor | Description |
|---|---|
UnitRatio(Unit numerator,
Unit denominator) |
Constructs the compound unit using conversion factors and labels from the
constituent units.
|
UnitRatio(Unit numerator,
Unit denominator,
java.lang.String name,
java.lang.String symbol) |
dimension, fromSim, prefixAllowed, symbol, toSimpublic UnitRatio(Unit numerator, Unit denominator)
numerator - the unit in the numerator of the compound unitdenominator - the unit in the denominator of the compount unitpublic UnitRatio(Unit numerator, Unit denominator, java.lang.String name, java.lang.String symbol)
numerator - the unit in the numerator of the compound unitdenominator - the unit in the denominator of the compount unitname - a description of the unit (e.g., Joules per mole)symbol - an abbreviated description of the unit (e.g., J/mol)