Public Class Tester Public Shared Sub Main Dim digits As Integer For digits = 0 To 5 Console.WriteLine(Math.Round(Math.PI, digits)) Next digits End Sub End Class
3 3.1 3.14 3.142 3.1416 3.14159