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