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



Teradata.Client.Provider Namespace > TdNumber Structure : ToSByte Method
The TdNumber that is to be converted to a 8-bit signed integer.
Converts the value of the specified TdNumber to the equivalent SByte.
Syntax
'Declaration
 
Public Shared Function ToSByte( _
   ByVal input As TdNumber _
) As SByte
'Usage
 
Dim input As TdNumber
Dim value As SByte
 
value = TdNumber.ToSByte(input)
public static sbyte ToSByte( 
   TdNumber input
)
public:
static sbyte ToSByte( 
   TdNumber input
) 

Parameters

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

Return Value

An 8-bit signed integer equivalent to the specified TdNumber is returned.
Exceptions
ExceptionDescription
The value of input is Null.
The TdNumber could not be converted to a SByte.
Remarks
When a TdNumber that has a scale greater than 0 is converted to a 8-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