double value to string with #,##0,,
using System;
using System.Globalization;
public class MainClass
{
public static void Main()
{
double value = 1234567890;
Console.WriteLine(value.ToString("#,,", CultureInfo.InvariantCulture));
Console.WriteLine(value.ToString("#,,,", CultureInfo.InvariantCulture));
Console.WriteLine(value.ToString("#,##0,,", CultureInfo.InvariantCulture));
}
}
/*
1235
1
1,235
*/
Related examples in the same category