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
548k questions
547k answers
4 comments
86.3k users