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
- dbl
Type: System.Double
A double value.
Return Value
Type: Microsoft.SolverFoundation.Common.Rational
A rational number that contains the value of the dbl parameter.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.