How to fix the error in the monetary representation by Double?


I'm using the type double to represent monetary values. As you know some number are not represented correctly, like 19,7949999999.... Is approximated to 19,80.

How can I resolve this? I tried to use Decimal instead but I still have the problem.

Thank you.

Indeed, use need to use System.Decimal.