Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BigInteger.CompareFractionToUlong Method

Solver Foundation 3.0

[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)
[CLSCompliantAttribute(false)]
public static int CompareFractionToUlong(
	BigInteger bnNum,
	BigInteger bnDen,
	ulong uu
)

Parameters

bnNum
Type: Microsoft.SolverFoundation.Common.BigInteger
The numerator of a fraction.
bnDen
Type: Microsoft.SolverFoundation.Common.BigInteger
The denominator of a fraction.
uu
Type: System.UInt64
A UInt64 integer that is used in the comparison.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.