Ejemplo n.º 1
0
		internal static Rhino.V8dtoa.DiyFp Normalize(Rhino.V8dtoa.DiyFp a)
		{
			Rhino.V8dtoa.DiyFp result = new Rhino.V8dtoa.DiyFp(a.f, a.e);
			result.Normalize();
			return result;
		}
Ejemplo n.º 2
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.
		internal static Rhino.V8dtoa.DiyFp Minus(Rhino.V8dtoa.DiyFp a, Rhino.V8dtoa.DiyFp b)
		{
			Rhino.V8dtoa.DiyFp result = new Rhino.V8dtoa.DiyFp(a.f, a.e);
			result.Subtract(b);
			return result;
		}
Ejemplo n.º 3
0
		// returns a * b;
		internal static Rhino.V8dtoa.DiyFp Times(Rhino.V8dtoa.DiyFp a, Rhino.V8dtoa.DiyFp b)
		{
			Rhino.V8dtoa.DiyFp result = new Rhino.V8dtoa.DiyFp(a.f, a.e);
			result.Multiply(b);
			return result;
		}