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



Teradata.Client.Provider Namespace > TdNumber Structure : ToInt32 Method
The TdNumber that is to be converted to a 32-bit signed integer.
Converts the value of the specified TdNumber into a Int32.
Syntax
'Declaration
 
Public Shared Function ToInt32( _
   ByVal input As TdNumber _
) As Integer
'Usage
 
Dim input As TdNumber
Dim value As Integer
 
value = TdNumber.ToInt32(input)
public static int ToInt32( 
   TdNumber input
)
public:
static int ToInt32( 
   TdNumber input
) 

Parameters

input
The TdNumber that is to be converted to a 32-bit signed integer.

Return Value

A 32-bit signed 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 Int32.
Remarks
When a TdNumber that has a scale greater than 0 is converted to a 32-bit signed integer the fractional part of the number will be truncated.
Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdNumber Structure
TdNumber Members