/** * Converts this unit definition to using only SI units and then call {@link #simplify()}. * * @return itself for convenience */ public UnitDefinition convertToSIUnits() { return convertToSIUnits(true); }
assignmentDerivedUnit = assignmentDerivedUnit.clone().convertToSIUnits(); varDerivedUnit = varDerivedUnit.clone().convertToSIUnits();
UnitDefinition ud1clone = ud1.clone().convertToSIUnits(); UnitDefinition ud2clone = ud2.clone().convertToSIUnits();
UnitDefinition klDerivedUnit = ValidationTools.getDerivedUnitDefinition(ctx, kl).clone().convertToSIUnits(); klDerivedUnit = klDerivedUnit.clone().convertToSIUnits(); expectedUnit.convertToSIUnits();
ud.convertToSIUnits(); ud.convertToSIUnits(false);
ud.convertToSIUnits(); ud.convertToSIUnits(false); // so that dimensionless is not lost if combined with metre.
ud.convertToSIUnits(); ud.convertToSIUnits(false);
ud.convertToSIUnits(); ud.convertToSIUnits(false);