Although I am aware of what would be best to use, I ask this question for teaching 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 accuracy in some cases.
So, in which situations would it be best to use each type?