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
2.1m questions
2.1m answers
60 comments
57.0k users