Rounds a double-precision floating-point value to a specified number of fractional digits
Module Example Public Sub Main() Dim values() As Double = { 2.125, 2.135 } For Each value As Double In values Console.WriteLine("{0} --> {1}", value, Math.Round(value, 2)) Next End Sub End Module