CultureInfo("en-us") Double value format: C
Option Strict On
Imports System.Globalization
Imports System.Threading
Module NumericFormats
Public Sub Main()
Dim ci As New CultureInfo("en-us")
Dim floating As Double = 10761.937554
Console.WriteLine("C: {0}", floating.ToString("C", ci)) ' Displays "C: $10,761.94"
End Sub
End Module
Related examples in the same category