Rational Implicit Conversion (Double to Rational)

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

Converts a double to a rational number.

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

Syntax

'Declaration
Public Shared Widening Operator CType ( _
    dbl As Double _
) As Rational
public static implicit operator Rational (
    double dbl
)
static implicit operator Rational (
    double dbl
)
F# does not support the declaration of new casting operators.
JScript does not support the declaration of new casting operators.

Parameters

Return Value

Type: Microsoft.SolverFoundation.Common.Rational
A rational number that contains the value of the dbl parameter.

.NET Framework Security

See Also

Reference

Rational Structure

Implicit Overload

Microsoft.SolverFoundation.Common Namespace