Convert.ToDecimal (SByte) converts 8-bit signed integer to decimal number.
Module Example
Public Sub Main()
Dim numbers() As SByte = { SByte.MinValue, -23, 0, 17, SByte.MaxValue }
Dim result As Decimal
For Each number As SByte In numbers
result = Convert.ToDecimal(number)
Console.WriteLine("Converted the SByte value {0} to {1}.", number, result)
Next
End Sub
End Module
Related examples in the same category