Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CompareTo Method (BigInteger)

Rational.CompareTo Method (BigInteger)

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 rational number to a big integer.

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

public int CompareTo(
	BigInteger bn
)

Parameters

bn
Type: Microsoft.SolverFoundation.Common.BigInteger
A big integer value.

Return Value

Type: System.Int32
A 32-bit signed integer that indicates how the rational number compares to the big integer. The return values are described in the following table.

Return value

Description

Less than zero

This object is less than bn.

Zero

This object is equivalent to bn..

Greater than zero

This object is greater than bn.

Implements

IComparable<T>.CompareTo(T)

Show:
© 2015 Microsoft