public string Evaluate(string input) { //string userName = Request.QueryString["username"]; Parser parser = new Parser(); decimal val = parser.Parse(input); return val.ToString(val.ToString("G", CultureInfo.InvariantCulture)); }
public static void Main(string[] args) { Console.Write("input: "); string input = Console.ReadLine(); Parser parser = new Parser(); decimal val = parser.Parse(input); Console.Write("Eval: " + val.ToString("G", CultureInfo.InvariantCulture)); }