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

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

See Also

Reference

BigInteger Structure

Microsoft.SolverFoundation.Common Namespace