BigInteger.CompareFractions Method
[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)
Syntax
'Declaration
Public Shared Function CompareFractions ( _
bnNum1 As BigInteger, _
bnDen1 As BigInteger, _
bnNum2 As BigInteger, _
bnDen2 As BigInteger _
) As Integer
public static int CompareFractions(
BigInteger bnNum1,
BigInteger bnDen1,
BigInteger bnNum2,
BigInteger bnDen2
)
public:
static int CompareFractions(
BigInteger bnNum1,
BigInteger bnDen1,
BigInteger bnNum2,
BigInteger bnDen2
)
static member CompareFractions :
bnNum1:BigInteger *
bnDen1:BigInteger *
bnNum2:BigInteger *
bnDen2:BigInteger -> int
public static function CompareFractions(
bnNum1 : BigInteger,
bnDen1 : BigInteger,
bnNum2 : BigInteger,
bnDen2 : BigInteger
) : int
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. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.