Decimal ExplicitNarrowingExplicitExplicitExplicit Conversion (Single to Decimal)
Defines an explicit conversion of a single-precision floating-point number to a Decimal.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
Parameters
- value
- Type: System..::..Single
The single-precision floating-point number to convert.
Return Value
The converted single-precision floating point number.Exceptions
Exception | Condition |
---|---|
System..::..OverflowException | value is less than MinValue or greater than MaxValue.-or- value is NaN, PositiveInfinity, or NegativeInfinity. |