Decimal format: F and Culture
Imports System.Globalization
Imports System
Imports Microsoft.VisualBasic
Module MainClass
Sub Main( )
Dim value As Decimal = 99999.62d
Dim specifier As String
Dim culture As CultureInfo
specifier = "F"
culture = CultureInfo.CreateSpecificCulture("fr-FR")
Console.WriteLine(value.ToString(specifier, culture))
' Displays: 99999,62
culture = CultureInfo.CreateSpecificCulture("en-CA")
Console.WriteLine(value.ToString(specifier, culture))
' Displays: 99999.62
End Sub
End Module
Related examples in the same category