Rounds a double-precision floating-point value to the 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, MidpointRounding.AwayFromZero)) Next End Sub End Module