Export (0) Print
Expand All

BigInteger.CompareFractions Method

Solver Foundation 3.0

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Compares integer fractions.

Namespace:  Microsoft.SolverFoundation.Common
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

public static int CompareFractions(
	BigInteger bnNum1,
	BigInteger bnDen1,
	BigInteger bnNum2,
	BigInteger bnDen2
)

Parameters

bnNum1
Type: Microsoft.SolverFoundation.Common.BigInteger
The numerator of the first fraction.
bnDen1
Type: Microsoft.SolverFoundation.Common.BigInteger
The denominator of the first fraction.
bnNum2
Type: Microsoft.SolverFoundation.Common.BigInteger
The numerator of the second fraction.
bnDen2
Type: Microsoft.SolverFoundation.Common.BigInteger
The denominator of the second fraction.

Return Value

Type: System.Int32
A number that indicates how the first fraction compares to the second fraction.

Number

Description

-1

The first fraction is smaller than the second fraction.

0

The fractions are equal.

1

The first fraction is larger than the second fraction.

Show:
© 2014 Microsoft