Essential Types C# Book

using System;
using System.Text;
using System.Globalization;
class Sample
{
public static void Main()
{
double x = double.Parse("1.234", CultureInfo.InvariantCulture);
Console.WriteLine(x);
}
}
The output:
1.234