DB2®DecimalFloat.Precision Property
Gets a value indicating the precision of the DB2DecimalFloat object's value.
- Namespace:
IBM.Data.DB2Types- Assembly:
IBM.Data.DB2(inIBM.Data.DB2.dll)
Syntax
[Visual Basic]
Public Property Precision As Integer
[C#]
public int Precision {get;}
[C++]
public: __property int get_Precision();
[JScript]
public function get Precision() : int;
Property value
An integer representing the precision of the DB2DecimalFloat structure. More specifically, this property indicates the number of significant figures of the DB2DecimalFloat value.
Exceptions
| Exception type | Condition |
|---|---|
| DB2NullValueException | For DB2DecimalFloat values where there is no precision, (NaN, sNaN, Null, NegativeInfinity, and PositiveInfinity), a NullValueException is returned. |
| InvalidOperationException | There is no more data to return. |