DB2 Version 9.7 for Linux, UNIX, and Windows

DB2DecimalFloat.ValueApproximate Property

Gets the approximate value stored in the DB2DecimalFloat object. Does not throw an exception if less significant digits are lost.

Namespace:
IBM.Data.DB2Types
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax

[Visual Basic]
Public ReadOnly Property ValueApproximate As Decimal
[C#]
public decimal ValueApproximate {get;}
[C++]
public: __property Decimal get_ValueApproximate();
[JScript]
public function get ValueApproximate() : decimal;

Exceptions

Exception type Condition
DB2NullValueException The DB2DecimalFloat.Null value cannot be assigned 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.

Property value

A decimal representing the approximate value of the DB2DecimalFloat instance.

Version information

Last update
This topic was last updated for: IBM DB2 Version 9.5
.NET Framework version
Supported in: 2.0, 3.0, 3.5, and 4.0
IBM Data Server Client
Supported in: IBM DB2 Version 9