Decimal.ToString Method (System) | Microsoft Docs
docs.microsoft.com › api › systemThe ToString method uses the standard or custom numeric format string specified by the format parameter to convert the value of the current instance into its string representation. The format parameter can be any valid standard numeric format specifier except for D, R, and X, as well as any combination of custom numeric format specifiers .
Standard numeric format strings | Microsoft Docs
docs.microsoft.com › en-us › dotnetNov 20, 2021 · Dim number As Double number = 12345.6789 Console.WriteLine(number.ToString("G", CultureInfo.InvariantCulture)) ' Displays 12345.6789 Console.WriteLine(number.ToString("G", _ CultureInfo.CreateSpecificCulture("fr-FR"))) ' Displays 12345,6789 Console.WriteLine(number.ToString("G7", CultureInfo.InvariantCulture)) ' Displays 12345.68 number = .0000023 Console.WriteLine(number.ToString("G", CultureInfo.InvariantCulture)) ' Displays 2.3E-06 Console.WriteLine(number.ToString("G", _ CultureInfo ...