using System.Globalization; ... string x = "0.00000"; decimal y = decimal.Parse(x, CultureInfo.InvariantCulture);