Rational Explicit Conversion (Rational to Int32)

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

Converts a rational number to an integer.

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

Syntax

'Declaration
Public Shared Narrowing Operator CType ( _
    rat As Rational _
) As Integer
public static explicit operator int (
    Rational rat
)
static explicit operator int (
    Rational rat
)
F# does not support the declaration of new casting operators.
JScript does not support the declaration of new casting operators.

Parameters

Return Value

Type: System.Int32
An integer that contains the value of the rat parameter.

.NET Framework Security

See Also

Reference

Rational Structure

Explicit Overload

Microsoft.SolverFoundation.Common Namespace