Double format: F2 : Double Format « Data Type « VB.Net Tutorial






Public Class Tester
    Public Shared Sub Main
        Dim dblNum As Double = 2123.456

        Console.WriteLine(dblNum.ToString("F2"))

    End Sub
End Class
2123.46








2.10.Double Format
2.10.1.Double with/without format
2.10.2.Double format: #,###.###000
2.10.3.Double format: F2