I want to convert this string: 0.55000000000000004 to this double: 0.55. How to do that?
0.55000000000000004
0.55
you can use this code to reduce precision part:
double m = Math.Round(0.55000000000000004,2);
Result would be : 0.55
1.4m articles
1.4m replys
5 comments
57.0k users