Send feedback on this topic.
Teradata.Client.Provider
Explicit Type Conversion(Double,TdNumber) Operator



Teradata.Client.Provider Namespace > TdNumber Structure > Explicit Type Conversion Operator : Explicit Type Conversion(Double,TdNumber) Operator
A TdNumber
Converts a TdNumber to a System.Double.
Syntax
'Declaration
 
Overloads Public Operator Narrowing CType( _
   ByVal input As TdNumber _
) As Double
'Usage
 
public double operator explicit( 
   TdNumber input
)
public:
double operator explicit( 
   TdNumber input
)

Parameters

input
A TdNumber

Return Value

A Double is returned.
Exceptions
ExceptionDescription
The value of the TdNumber is Null.
Remarks

When a TdNumber is converted into a System.Double a rounding error may occur.

The reason for this is that the mantissa of a Double has a precision of 16 digits. A TdNumber has a precision of 40 digits. When a TdNumber is converted to a System.Double, it will be truncated at the 17th position from the left.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdNumber Structure
TdNumber Members
Overload List