Bridge

Decimal ExplicitNarrowingExplicitExplicitExplicit Conversion (Double to Decimal)

Defines an explicit conversion of a double-precision floating-point number to a Decimal.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


public static explicit operator decimal (
	double value
)
Public Shared Narrowing Operator CType ( _
	value As Double _
) As Decimal
static explicit operator Decimal^ (
	double^ value
)

Parameters

value
Type: System..::..Double
The double-precision floating-point number to convert.

Return Value

The converted double-precision floating point number.

Exceptions


ExceptionCondition
System..::..OverflowExceptionvalue is less than MinValue or greater than MaxValue.-or- value is NaN, PositiveInfinity, or NegativeInfinity.