use of org.tensorics.core.units.JScienceUnit in project tensorics-core by tensorics.
the class JScienceQuantificationStrategy method standardUnitOf.
private <S extends Quantified> Unit standardUnitOf(S scalar) {
Unit unit = scalar.unit();
throwIfNotJScience(unit);
return JScienceUnit.of(((JScienceUnit) unit).getUnit().getStandardUnit());
}
Aggregations