Bridge

Decimal Constructor (Single)

Initializes a new instance of Decimal to the value of the specified single-precision floating-point number.

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

Syntax


[TemplateAttribute]
public Decimal(
	float f
)
<TemplateAttribute> _
Public Sub New ( _
	f As Single _
)
[TemplateAttribute]
public:
Decimal(
	float^ f
)

Parameters

f
Type: System..::..Single

Exceptions


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