DB2DecimalFloat.op_explicit (DB2DecimalFloat) returns decimal Method
Converts the DB2DecimalFloat to a decimal.
- Namespace:
IBM.Data.DB2Types
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Shared Narrowing Operator CType (source As DB2DecimalFloat) As Decimal
[C#]
public static explicit operator decimal (DB2DecimalFloat source)
[C++]
public:
static explicit operator Decimal (DB2DecimalFloat source)
Parameters
- source
- A DB2DecimalFloat to be converted to a decimal.
Return value
A decimal value representation of DB2DecimalFloat.
Exceptions
Exception type | Condition |
---|---|
DB2®NullValueException | The DB2DecimalFloat.Null value cannot be assigned to a decimal. |
DB2TruncateException | Significant figures are lost when assigning the DB2DecimalFloat value to a decimal. |
InvalidCastException | A special value (for example, NaN) cannot be assigned to a decimal. |
OverflowException | The value being assigned to a decimal is too large. |