public double GetValue(Unit unit) { ConfirmUnitMatch(Unit, unit); return(unit.FromSI(Unit.ToSI(Number))); }
public void SetUnit(Unit unit) { ConfirmUnitMatch(Unit, unit); Unit = unit.Clone(); }
public void SetValue(double value, Unit unit) { Unit = unit.Clone(); _siValue = Unit.ToSI(value); }
public UnitNumber(double value, Unit unit) { SetValue(value, unit); }