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
public field MaxPrecision Maximum precision for DB2DecimalFloat: 34.
public field MaxValue Maximum value for DB2DecimalFloat: 9.999999999999999999999999999999999E+6144.
public field MinValue Minimum value for DB2DecimalFloat: -9.999999999999999999999999999999999E+6144.
public field NaN Not a number value.
public field NegativeInfinity Negative infinity value.
public field Null Null value for DB2DecimalFloat.
public field PositiveInfinity Positive infinity value.
public field sNaN Not a number value. Signals an error when used in a numeric operation.
public field Zero Zero value.

Public Constructors

Constructor Description
public method DB2®DecimalFloat(decimal) Initializes a new DB2DecimalFloat object with the specified decimal value. Precision and Scale are inferred from the value.
public method DB2DecimalFloat(double) Initializes a new DB2DecimalFloat object with the specified double value. Precision and Scale are inferred from the value.
public method DB2DecimalFloat(long) Initializes a new DB2DecimalFloat object with the specified long value. Precision and Scale are inferred from the value.

Public Properties

Property Description
public property IsNull Gets a value that indicates if the value stored in the DB2DecimalFloat object is null.
public property Precision Gets a value indicating the precision of the DB2DecimalFloat object's value.
public property Scale Gets a value indicating the scale of the DB2DecimalFloat object's value.
public property Value Gets the value stored in the DB2DecimalFloat object.
public property 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
public methodstatic Parse Overloaded. Initializes the DB2DecimalFloat object with the specified value and rounding mode. Precision and Scale are inferred from the value.
public method ToString Returns a string that represents the DB2DecimalFloat object.
public method op_explicit Converts the supplied DB2DecimalFloat structure to a numeric value.
public method op_implicit Converts the supplied numeric value to DB2DecimalFloat.