20
Although I am aware of what would be better to use, I ask this question for educational purposes since I see several examples of people using double
in C#. But I’ve had problems with double
for coin calculations and read in several places that the type loses precision in some cases.
Therefore, in which situations it would be better to use each type?
Decimal type accuracy is 28-29 significant digits.
– user4552