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



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

Parameters

input
The Single that will be converted to a TdDecimal.
Exceptions
ExceptionDescription
The input cannot be Infinity or NaN.
Remarks
When converting a value that is a Single to a TdDecimal there may be 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