Decimal.ToString Method Converts Decimal to string using the specified format and culture-specific format information.
Imports System
Imports Microsoft.VisualBasic
Imports System.Globalization
Module MainClass
Sub Main( )
Dim value As Decimal = 99999.62d
Dim specifier As String
Dim culture As CultureInfo
' Use standard numeric format specifiers.
specifier = "G"
culture = CultureInfo.CreateSpecificCulture("eu-ES")
Console.WriteLine(value.ToString(specifier, culture))
Console.WriteLine(value.ToString(specifier, CultureInfo.InvariantCulture))
End Sub
End Module
Related examples in the same category