Convert.ToDecimal (Single) converts single-precision floating-point number to decimal number.
Module Example Public Sub Main() Console.WriteLine(Convert.ToDecimal(2010.12f)) Console.WriteLine(Convert.ToDecimal(10.2010f)) End Sub End Module