DB2®DecimalFloat.Parse(string, IBM.Data.DB2Types.DB2RoundingMode) Method

Initializes the DB2DecimalFloat object with the specified value and rounding mode. Precision and Scale are inferred from the value.

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

Syntax


[Visual Basic]
Public Shared Function Parse (value As String, _
                              roundMode As DB2RoundingMode _
) As DB2DecimalFloat
[C#]
public static DB2DecimalFloat Parse (string value,
                     DB2RoundingMode roundMode)
[C++]
public:
static DB2DecimalFloat Parse (string value,
                     DB2RoundingMode roundMode)
[JScript]
public static function Parse (value String
                     roundMode DB2RoundingMode
) : DB2DecimalFloat

Parameters

value
A String value to be converted to DB2DecimalFloat.
roundMode
The DB2RoundingMode that determines how to adjust the DB2DecimalFloat value when digits need to be discarded.

Return value

A DB2DecimalFloat structure with the numeric value of value.

Remarks

If digits are to be discarded, it is done so silently according to the rules corresponding to the assigned DB2RoundingMode.