コード例 #1
0
ファイル: DiyFp.cs プロジェクト: hazzik/Rhino.Net
		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;
		}
コード例 #2
0
ファイル: DiyFp.cs プロジェクト: hazzik/Rhino.Net
		// 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;
		}
コード例 #3
0
ファイル: DiyFp.cs プロジェクト: hazzik/Rhino.Net
		// 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;
		}