Convert.ToDouble (UInt64) converts 64-bit unsigned integer to double-precision floating-point number.
Module Example
Public Sub Main()
Dim numbers() As ULong = { UInt64.MinValue, 121, 12345, UInt64.MaxValue }
Dim result As Double
For Each number As ULong In numbers
result = Convert.ToDouble(number)
Console.WriteLine("Converted the UInt64 value {0} to {1}.", _
number, result)
Next
End Sub
End Module
Related examples in the same category