Exemplo n.º 1
0
        public Fraction64(IFraction fraction)
        {
            long numerator, denominator;

            _wholeNumber = FractionUtil.GetNormalizedRational64(FractionUtil.ToInt64(fraction.WholeNumber), FractionUtil.ToInt64(fraction.Numerator), FractionUtil.ToInt64(fraction.Denominator, 1), out numerator, out denominator);
            _numerator   = numerator;
            _denominator = denominator;
        }