Send feedback on this topic.
Teradata.Client.Provider
ToUInt64 Method (TdDecimal)



Teradata.Client.Provider Namespace > TdDecimal Structure : ToUInt64 Method
The TdDecimal that is to be converted to a 64-bit unsigned integer.
Converts the value of the specified TdDecimal to the equivalent UInt64.
Syntax
'Declaration
 
Public Shared Function ToUInt64( _
   ByVal input As TdDecimal _
) As ULong
'Usage
 
Dim input As TdDecimal
Dim value As ULong
 
value = TdDecimal.ToUInt64(input)
public static ulong ToUInt64( 
   TdDecimal input
)
public:
static ulong ToUInt64( 
   TdDecimal input
) 

Parameters

input
The TdDecimal that is to be converted to a 64-bit unsigned integer.

Return Value

A 64-bit unsigned integer equivalent to the specified TdDecimal is returned.
Exceptions
ExceptionDescription
The value is the TdDecimal is Null.
The TdDecimal could not be converted an UInt64
Remarks
When a TdDecimal that has a TdDecimal.Scale greater than 0 is converted to a 64-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

TdDecimal Structure
TdDecimal Members