int((0.1+0.7)*10) = 7 in several languages. How to prevent this?

What Every Computer Scientist Should Know About Floating-Point Arithmetic

Leave a Comment