BigInteger.CompareFractionToUlong Method

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

Compares a fraction to an unsigned long.

This API is not CLS-compliant. The CLS-compliant alternative is Decimal.

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function CompareFractionToUlong ( _
    bnNum As BigInteger, _
    bnDen As BigInteger, _
    uu As ULong _
) As Integer
[CLSCompliantAttribute(false)]
public static int CompareFractionToUlong(
    BigInteger bnNum,
    BigInteger bnDen,
    ulong uu
)
[CLSCompliantAttribute(false)]
public:
static int CompareFractionToUlong(
    BigInteger bnNum, 
    BigInteger bnDen, 
    unsigned long long uu
)
[<CLSCompliantAttribute(false)>]
static member CompareFractionToUlong : 
        bnNum:BigInteger * 
        bnDen:BigInteger * 
        uu:uint64 -> int 
public static function CompareFractionToUlong(
    bnNum : BigInteger, 
    bnDen : BigInteger, 
    uu : ulong
) : int

Parameters

Return Value

Type: System.Int32
A number that indicates how the fraction compares to the unsigned long.

Number

Description

-1

The fraction is smaller than the unsigned long.

0

The fraction is equal to the unsigned long.

1

The fraction is larger than the unsigned long.

.NET Framework Security

See Also

Reference

BigInteger Structure

Microsoft.SolverFoundation.Common Namespace