Converts a Decimal to an SByte.
[Visual Basic] Overloads Public Shared Function ToSByte( _ ByVal value As Decimal _ ) As SByte [C#] public static sbyte ToSByte( Decimal value ); [C++] public: static char ToSByte( Decimal value ); [JScript] public static function ToSByte( value : Decimal ) : SByte;
value rounded to the nearest integer. If value is exactly halfway between two whole numbers, this method returns the the integer that is even (i.e. 4.5 is converted to 4, and 5.5 is converted to 6).
Exception Type | Condition |
---|---|
OverflowException | is thrown if value is greater than SByte.MaxValue or less than SByte.MinValue. |
Convert Class | Convert Members | System Namespace | Convert.ToSByte Overload List