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



Teradata.Client.Provider Namespace > TdDecimal Structure > Parse Method : Parse(String,IFormatProvider) Method
The numeric string that is to be converted to a TdDecimal.
An IFormatProvider that supplies culture-specific formatting information.
Converts the String representation of a number to its TdDecimal equivalent using the specified culture-specific format information.
Syntax
'Declaration
 
Public Overloads Shared Function Parse( _
   ByVal input As String, _
   ByVal provider As IFormatProvider _
) As TdDecimal
'Usage
 
Dim input As String
Dim provider As IFormatProvider
Dim value As TdDecimal
 
value = TdDecimal.Parse(input, provider)
public static TdDecimal Parse( 
   string input,
   IFormatProvider provider
)
public:
static TdDecimal Parse( 
   String^ input,
   IFormatProvider^ provider
) 

Parameters

input
The numeric string that is to be converted to a TdDecimal.
provider
An IFormatProvider that supplies culture-specific formatting information.

Return Value

The TdDecimal 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 TdDecimal
The numeric string is null.
Remarks

A reference to the Globalization.NumberFormatInfo associated with the specified provider is retrieved. The properties of the NumberFormatInfo are used when parsing the numeric string. However, the only culture specific properties that are supported are as follows:

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

Refer to TdDecimal.Parse for further information about the format of the numeric string.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDecimal Structure
TdDecimal Members
Overload List