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

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDecimal Structure
TdDecimal Members