'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.
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019