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

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

See Also

Reference

TdNumber Structure
TdNumber Members