예제 #1
0
        public static bool TryParse(string s, out Fraction64 value)
        {
            long wholeNumber, numerator, denominator;

            if (FractionUtil.TryParse64(s, out wholeNumber, out numerator, out denominator))
            {
                value = new Fraction64(wholeNumber, numerator, denominator);
                return(true);
            }

            value = new Fraction64();
            return(false);
        }