Decimal Constructor (Single)
Initializes a new instance of Decimal to the value of the specified single-precision floating-point number.
Namespace:
SystemAssembly: 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
Exception | Condition |
---|---|
System..::..OverflowException | value is greater than MaxValue or less than MinValue.-or- value is NaN, PositiveInfinity, or NegativeInfinity. |