예제 #1
0
        // Returns a - b.
        // The exponents of both numbers must be the same and this must be bigger
        // than other. The result will not be normalized.
        public static DiyFp Minus(ref DiyFp a, ref DiyFp b)
        {
            DiyFp result = a;

            result.Subtract(ref b);
            return(result);
        }
예제 #2
0
파일: DiyFp.cs 프로젝트: thegoldenmule/jint
        // Returns a - b.
        // The exponents of both numbers must be the same and this must be bigger
        // than other. The result will not be normalized.
        internal static DiyFp Minus(DiyFp a, DiyFp b)
        {
            DiyFp result = new DiyFp(a.F, a.E);

            result.Subtract(b);
            return(result);
        }