Send feedback on this topic.
Teradata.Client.Provider
ToDouble Method (TdDecimal)



Teradata.Client.Provider Namespace > TdDecimal Structure : ToDouble Method
The TdDecimal that is to be converted to a double precision number.
Converts the value of the specified TdDecimal into a Double .
Syntax
'Declaration
 
Public Shared Function ToDouble( _
   ByVal input As TdDecimal _
) As Double
'Usage
 
Dim input As TdDecimal
Dim value As Double
 
value = TdDecimal.ToDouble(input)
public static double ToDouble( 
   TdDecimal input
)
public:
static double ToDouble( 
   TdDecimal input
) 

Parameters

input
The TdDecimal that is to be converted to a double precision number.

Return Value

A double precision value that is equivalent to the specified TdDecimal is returned.
Exceptions
ExceptionDescription
The value of the TdDecimal is Null.
Remarks
A rounding error can occur because a Double precision floating point number contains fewer significant digits than a TdDecimal.
Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDecimal Structure
TdDecimal Members