Parameters
- input
- The numeric string that is to be converted to a TdNumber.
Return Value
The TdNumber representation of the specified numeric string.
Exception | Description |
---|---|
System.FormatException | The format of the numeric string is invalid. |
System.OverflowException | The specified numeric string could not be converted to a TdNumber |
System.ArgumentNullException | The numeric string is null. |
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.
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |