NumberFormatInfo.NumberDecimalSeparator gets or sets decimal separator in numeric values.
Imports System
Imports System.Globalization
Class NumberFormatInfoSample
Public Shared Sub Main()
Dim nfi As NumberFormatInfo = New CultureInfo("en-US", False).NumberFormat
Dim myInt As Int64 = 123456789
Console.WriteLine(myInt.ToString("N", nfi))
nfi.NumberDecimalSeparator = " "
Console.WriteLine(myInt.ToString("N", nfi))
End Sub
End Class
Related examples in the same category