Send feedback on this topic.
Teradata.Client.Provider
ToSingle Method (TdNumber)



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

Parameters

input
The TdNumber that is to be converted to a single precision number.

Return Value

A single precision value is returned that has the equivalent value as the specified TdNumber.
Exceptions
ExceptionDescription
The value in the TdNumber is Null.
Remarks
A rounding error can occur because a single precision floating point number contains fewer significant digits than a TdNumber.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdNumber Structure
TdNumber Members