Possible Duplicate:
problem in comparing double values in C#
Double variable keeping wrong value
I'm storing some values in a table in the MySQL database, the column type is double(8,2). I'm fetching that data and then I'm calling the LINQ's Sum() extension method. That operation returns e.g 384.18. Then I get the 2nd value (in the same way) and I get e.g 384.17.
When I do some math, the result is:
384.18 - 384.17 = 0.0099999999999909051
why not 0.01 ? I know I can use the Math.Round() method but I'm wondering why I get that result.