DB2®DecimalFloat.Parse(string) Method

Initializes the DB2DecimalFloat structure with the specified string. 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) As DB2DecimalFloat
[C#]
public static DB2DecimalFloat Parse (string value)
[C++]
public:
static DB2DecimalFloat Parse (string value)
[JScript]
public static function Parse (value String ) : DB2DecimalFloat

Parameters

value
A String value to be converted to DB2DecimalFloat.

Return value

A DB2DecimalFloat structure with the numeric value of value.

Remarks

The DB2DecimalFloat instances created with this method are assigned the rounding mode: RoundingMode.HalfEven If digits are to be discarded it is done so silently.