BigInteger.CompareFractionToBigInteger Method

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

Compares a fraction with a big integer.

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

Syntax

'Declaration
Public Shared Function CompareFractionToBigInteger ( _
    bnNum As BigInteger, _
    bnDen As BigInteger, _
    bn As BigInteger _
) As Integer
public static int CompareFractionToBigInteger(
    BigInteger bnNum,
    BigInteger bnDen,
    BigInteger bn
)
public:
static int CompareFractionToBigInteger(
    BigInteger bnNum, 
    BigInteger bnDen, 
    BigInteger bn
)
static member CompareFractionToBigInteger : 
        bnNum:BigInteger * 
        bnDen:BigInteger * 
        bn:BigInteger -> int 
public static function CompareFractionToBigInteger(
    bnNum : BigInteger, 
    bnDen : BigInteger, 
    bn : BigInteger
) : int

Parameters

Return Value

Type: System.Int32
A number that indicates how the fraction compares to the big integer.

Number

Description

-1

The fraction is smaller than the big integer.

0

The fraction is equal to the big integer.

1

The fraction is larger than the big integer.

Remarks

This method does not assume that the Gcd method returns one.

.NET Framework Security

See Also

Reference

BigInteger Structure

Microsoft.SolverFoundation.Common Namespace