string word = "3.5"; double value = double.Parse(word); Console.WriteLine(value.ToString() + " q " + word);