Convert.ToDouble (Int16) converts specified 16-bit signed integer to double-precision floating-point number.
Module Example
Public Sub Main()
Dim numbers() As Short = { Int16.MinValue, -1032, 0, 192, Int16.MaxValue }
Dim result As Double
For Each number As Short In numbers
result = Convert.ToDouble(number)
Console.WriteLine("Converted the UInt16 value {0} to {1}.", _
number, result)
Next
End Sub
End Module
Related examples in the same category