Send feedback on this topic.
Teradata.Client.Provider
TdDecimal Constructor(Double)



Teradata.Client.Provider Namespace > TdDecimal Structure > TdDecimal Constructor : TdDecimal Constructor(Double)
The double that will be converted to a TdDecimal.
Initializes a new instance of TdDecimal from the specified System.Double value.
Syntax
'Declaration
 
Public Function New( _
   ByVal input As Double _
)
'Usage
 
Dim input As Double
 
Dim instance As New TdDecimal(input)
public TdDecimal( 
   double input
)
public:
TdDecimal( 
   double input
)

Parameters

input
The double that will be converted to a TdDecimal.
Exceptions
ExceptionDescription
The Double could not be converted to a TdDecimal.
Remarks
When converting a value that is a double to a TdDecimal, there may be a loss of precision.
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
Overload List