Ejemplo n.º 1
0
        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 !;
Ejemplo n.º 2
0
 public QuantifiedDouble Transition(QuantifiedDouble target,
                                    Double percentComplete)
 {
     return(new QuantifiedDouble(Quantity + (target.Quantity - Quantity) * percentComplete, Units));
 }