Convert.ToDouble (Int64) converts 64-bit signed integer to double-precision floating-point number.
Module Example
Public Sub Main()
Dim numbers() As Long = { Int64.MinValue, -903, 0, 172, Int64.MaxValue}
Dim result As Double
For Each number As Long In numbers
result = Convert.ToDouble(number)
Console.WriteLine("Converted the {0} value '{1}' to the {2} value {3}.", _
number.GetType().Name, number, _
result.GetType().Name, result)
Next
End Sub
End Module
Related examples in the same category