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



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

Parameters

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

Return Value

A 64-bit signed integer equivalent to the specified TdDecimal is returned.
Exceptions
ExceptionDescription
The value is the TdDecimal is Null.
The TdDecimal could not be converted an Int64
Remarks
When a TdDecimal that has a TdDecimal.Scale greater than 0 is converted to a 64-bit signed integer the fractional part of the number will be truncated.
Requirements

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

See Also

Reference

TdDecimal Structure
TdDecimal Members