Javascript insanity?

On Facebook they write

I enjoy JavaScript but this is insanity

Welcome to a language that has approximate math as the only math you can use.

In fact 7110 / 100 * 100 is 7109.99999999 because the first division cannot be exactly represented with with a floating point representation.

Sites like https://baseconvert.com/ieee-754-floating-point come handy…

Those are the moments when I rejoice for choosing Eiffel as my favourite language

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.