Decimal..::..ToSByte Method
Converts the value of the specified Decimal to the equivalent 8-bit signed integer.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static sbyte ToSByte( decimal value )
<TemplateAttribute> _ Public Shared Function ToSByte ( _ value As Decimal _ ) As SByte
[TemplateAttribute] public: static signed char^ ToSByte( Decimal^ value )
Parameters
- value
- Type: System..::..Decimal
The decimal number to convert.
Return Value
An 8-bit signed integer equivalent to value.Exceptions
Exception | Condition |
---|---|
System..::..OverflowException | value is less than MinValue or greater than MaxValue. |