public class Test public Shared Sub Main For x As Single = 1 To 3 Step 0.5 Console.WriteLine(x.ToString("0.0")) Next x End Sub End class
1.0 1.5 2.0 2.5 3.0