コード例 #1
0
        public Fraction8(IFraction other)
        {
            _hashCode = 0;
            sbyte numerator, denominator;

            _wholeNumber = FractionUtil.GetNormalizedRational8(FractionUtil.ToSByte(other.WholeNumber), FractionUtil.ToSByte(other.Numerator), FractionUtil.ToSByte(other.Denominator, 1), out numerator, out denominator);
            _numerator   = numerator;
            _denominator = denominator;
        }