T
Tony Johansson
Hello!
I have a win form program implementing a calculator.
In this program a have button with the text decimalpoint which all
calculator have.
I have one problem here.
When I do the following I run into FormatException
double d = double.Parse(txtDisplay);
because txtDisplay = "0.2". as you can see we have a decimalpoint here
if I insted use a comma like , it works.
How do I fix to be able to use double.Parse("0.2") with decimalpoint
//Tony
I have a win form program implementing a calculator.
In this program a have button with the text decimalpoint which all
calculator have.
I have one problem here.
When I do the following I run into FormatException
double d = double.Parse(txtDisplay);
because txtDisplay = "0.2". as you can see we have a decimalpoint here
if I insted use a comma like , it works.
How do I fix to be able to use double.Parse("0.2") with decimalpoint
//Tony