Export (0) Print
Expand All

Rational.CompareTo Method (Int32)

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 an integer.

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

public int CompareTo(
	int n
)

Parameters

n
Type: System.Int32
A integer value.

Return Value

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

Return value

Description

Less than zero

This object is less than the input.

Zero

This object is equivalent to the input.

Greater than zero

This object is greater than the input.

Implements

IComparable<T>.CompareTo(T)

Show:
© 2014 Microsoft