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