Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
hitko31486y0.1000000000000000055511151231257827021181583404541015625 + 0.200000000000000011102230246251565404236316680908203125 != 0.299999999999999988897769753748434595763683319091796875
It's IEEE 754, not JS -
Fun fact:
You can't store '0.1' in floating point format. '0.5' is fine though. -
@ihatecomputers everyday 100s of people learn something new to them that makes them mad. Those that already know it need to let them vent their anger and smile knowing what pain, heartbreak, and despair awaits them on their journey.
-
@bkwilliams Yes, but I meant blaming JS for a problem that is inherent in pretty much all widely used languages
-
@ihatecomputers there's no better way to out oneself as a completely clueless noob.
-
@mkopter how on earth have you been in dev for 15 years and still don't know shit about floats?!
-
Trithon10306yThat's not a javascript problem. Read up on the IEEE 754 64bit doube precision floating point number
Related Rants
I ❤ JavaScript
joke/meme
js