Add more Base Units - #452
Conversation
|
As far as I know, there are exactly 7 base units in SI. Those form a fixed set of building blocks from which other units are derived. For Example
public static final Unit<Mass> KILOGRAM = addUnit(new BaseUnit<Mass>("kg", "Kilogram", UnitDimension.MASS), Mass.class);is the SI base unit for /**
* The SI derived unit for mass quantities (standard name <code>g</code>). The
* base unit for mass quantity is {@link #KILOGRAM}.
*/
public static final Unit<Mass> GRAM = addUnit(INSTANCE.units, KILOGRAM.divide(1000), "Gram");If you derive Millimetre, Centimetre and Kilometre adequately from the base unit That said, adding some so called prefixed units and not others to the |
|
As as I know the divide method provides overloaded signatures for performing division but I do not need any of that. If you don't mind I need the mentioned Base Units. |
|
I think I solved the issue as: |
Add new Base Units: Millimetre (Symbol:mm), Centimetre(Symbol:cm) and Kilometre (Symbol:km)
Close issue: #451
This change is