public static Boolean TryParse(String value, out QuantifiedDouble quantifiedDouble) { var endOfValue = -1; for (var c = value.Length - 1; c >= 0; c--) { if (!Char.IsDigit(value[c])) { continue; } endOfValue = c; break; } if (endOfValue == -1) { quantifiedDouble = default !;
public QuantifiedDouble Transition(QuantifiedDouble target, Double percentComplete) { return(new QuantifiedDouble(Quantity + (target.Quantity - Quantity) * percentComplete, Units)); }