DB2DecimalFloat Members
Represents the DECFLOAT(16|34) Db2® data type. The following tables list the members exposed by the DB2DecimalFloat class.
Public Fields
| Field | Description |
|---|---|
MaxPrecision |
Maximum precision for DB2DecimalFloat: 34. |
MaxValue |
Maximum value for DB2DecimalFloat: 9.999999999999999999999999999999999E+6144. |
MinValue |
Minimum value for DB2DecimalFloat: -9.999999999999999999999999999999999E+6144. |
NaN |
Not a number value. |
NegativeInfinity |
Negative infinity value. |
Null |
Null value for DB2DecimalFloat. |
PositiveInfinity |
Positive infinity value. |
sNaN |
Not a number value. Signals an error when used in a numeric operation. |
Zero |
Zero value. |
Public Constructors
| Constructor | Description |
|---|---|
DB2®DecimalFloat(decimal) |
Initializes a new DB2DecimalFloat object with the specified decimal value. Precision and Scale are inferred from the value. |
DB2DecimalFloat(double) |
Initializes a new DB2DecimalFloat object with the specified double value. Precision and Scale are inferred from the value. |
DB2DecimalFloat(long) |
Initializes a new DB2DecimalFloat object with the specified long value. Precision and Scale are inferred from the value. |
Public Properties
| Property | Description |
|---|---|
IsNull |
Gets a value that indicates if the value stored in the DB2DecimalFloat object is null. |
Precision |
Gets a value indicating the precision of the DB2DecimalFloat object's value. |
Scale |
Gets a value indicating the scale of the DB2DecimalFloat object's value. |
Value |
Gets the value stored in the DB2DecimalFloat object. |
ValueApproximate |
Gets the approximate value stored in the DB2DecimalFloat object. Does not throw an exception if less significant digits are lost. |
Public Methods
| Method | Description |
|---|---|
![]() Parse |
Overloaded. Initializes the DB2DecimalFloat object with the specified value and rounding mode. Precision and Scale are inferred from the value. |
ToString |
Returns a string that represents the DB2DecimalFloat object. |
op_explicit |
Converts the supplied DB2DecimalFloat structure to a numeric value. |
op_implicit |
Converts the supplied numeric value to DB2DecimalFloat. |