Decimal ToString: G
Imports System Imports Microsoft.VisualBasic Module MainClass Sub Main( ) Dim value As Decimal = 99999.62d Dim specifier As String specifier = "G" Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)) End Sub End Module