'Usage
Parameters
- input
- The TdNumber that will be converted.
Return Value
A TdDecimal is returned.
'Usage
Exception | Description |
---|---|
System.OverflowException | The number represented by input cannot be contained in a TdDecimal. |
If the number contained in input is very close to zero, the TdDecimal instance that is returned will be zero. For example, suppose an instance of TdNumber contains the number 9.231356e-50. When this number is converted into an instance of TdDecimal, the number that the instance contains is zero. The reason for this is that the maximum precision of a TdDecimal is 38, and the first 38 digits that are to the right of the decimal point of the number are all zeroes.
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 |