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
- bnNum
Type: Microsoft.SolverFoundation.Common.BigInteger
The numerator of a fraction.
- bnDen
Type: Microsoft.SolverFoundation.Common.BigInteger
The denominator of a fraction.
- bn
Type: Microsoft.SolverFoundation.Common.BigInteger
The BigInteger type that is used in the comparison.
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
- 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.