using System;
using System.Globalization;
public class Example
{
public static void Main()
{
double value = 123456.123456;
string specifier;
CultureInfo culture;
// 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));
}
}
/*
123456,123456
123456.123456
*/