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



Teradata.Client.Provider Namespace > TdNumber Structure : ToUInt16 Method
The TdNumber that is to be converted to a 16-bit unsigned integer.
Converts the value of the specified TdNumber to the equivalent UInt16.
Syntax
'Declaration
 
Public Shared Function ToUInt16( _
   ByVal input As TdNumber _
) As UShort
'Usage
 
Dim input As TdNumber
Dim value As UShort
 
value = TdNumber.ToUInt16(input)
public static ushort ToUInt16( 
   TdNumber input
)
public:
static ushort ToUInt16( 
   TdNumber input
) 

Parameters

input
The TdNumber that is to be converted to a 16-bit unsigned integer.

Return Value

A 16-bit unsigned integer value that is equivalent to the specified TdNumber is returned.
Exceptions
ExceptionDescription
The value of the TdNumber is Null.
The TdNumber could not be converted to UInt16
Remarks
When a TdNumber that has a scale greater than 0 is converted to a 16-bit unsigned integer the fractional part of the number will be truncated.
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