Send feedback on this topic.
Teradata.Client.Provider
Parse(String) Method



Teradata.Client.Provider Namespace > TdNumber Structure > Parse Method : Parse(String) Method
The numeric string that is to be converted to a TdNumber.
Converts the String representation of a number to its TdNumber equivalent.
Syntax
'Declaration
 
Public Overloads Shared Function Parse( _
   ByVal input As String _
) As TdNumber
'Usage
 
Dim input As String
Dim value As TdNumber
 
value = TdNumber.Parse(input)
public static TdNumber Parse( 
   string input
)
public:
static TdNumber Parse( 
   String^ input
) 

Parameters

input
The numeric string that is to be converted to a TdNumber.

Return Value

The TdNumber representation of the specified numeric string.
Exceptions
ExceptionDescription
The format of the numeric string is invalid.
The specified numeric string could not be converted to a TdNumber
The numeric string is null.
Remarks
String Result
1234562546908.23442 is a valid string
123456254690823442e-5 is a valid string
.00123456254690823442e15 is a valid string
1,234,562,546,908,234.42e-3 is a valid string
1234,562546,9,08.23442 is a valid string
1,234,562,546,908,234.42g-3 is an invalid string
1,234,562,546,908, is an invalid string
1,234,562,546,908.23,442 is an invalid string
1,234,562,546,908.23442- is an invalid string due the negative sign at the end of the string.

Both the group separator and decimal separator are culture specific.

If the input contains the string "NULL" a TdNumber.Null will be returned.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdNumber Structure
TdNumber Members
Overload List