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



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

Parameters

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

Return Value

An 8-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 to a SByte
Remarks
When a TdDecimal that has a TdDecimal.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

TdDecimal Structure
TdDecimal Members