Hi,
I have a serious problem. I do make any aritmetic operations and it's work very well. But the problem is on any aritmetic operations for example 135,54 + 18,55 = 154,09
txtNumber1 = 135,54
txtNumber2 = 18,35
txtResNumber = 154,89
Now in practice:
double d1, d2, total;
double.TryParse(txtNumber1.Text, out d1);
double.TryParse(txtNumber2.Text, out d2);
total = d1 + d2;
txtResNumber.Text = total.ToString("N2");
Then the result show every time 154,00 never show the real result as 154,89
I need a good solution to resolv it please.
Thank you,
Israel.
Amit GuptaPosted Aug 25, 2018, 3:56 PM
IsraelPosted Aug 25, 2018, 6:50 PM
IsraelPosted Aug 25, 2018, 3:40 PM
Amit GuptaPosted Aug 25, 2018, 11:46 AM
IsraelPosted Aug 24, 2018, 6:25 PM