Convert.ToDouble (UInt16) converts 16-bit unsigned integer to double-precision floating-point number.
Module Example
Public Sub Main()
Dim numbers() As UShort = { UInt16.MinValue, 121, 12345, UInt16.MaxValue }
Dim result As Double
For Each number As UShort 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