JavaScript's parseInt function just decided that 0.0000005 equals 5 because scientific notation turned it into "5e-7" and parseInt grabbed just the "5" like a toddler picking only the M&Ms out of trail mix. Six decimal places? Nah, too much work. Five? Still zero. Seven? BOOM, suddenly 5. It's like JavaScript was programmed by someone rolling dice to determine behavior. No wonder developers drink.
Someone Explain This To Me Like Im Five
1 year ago
398,140 views
0 shares
javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
Instance Of Front Back End Joke
1 year ago
540.9K views
0 shares
Settling the debate once and for all
3 years ago
199.6K views
0 shares
The Chaotic Romance With JavaScript
1 year ago
420.1K views
2 shares
How You Look Like Based On Your Favourite Programming Language
1 year ago
602.0K views
0 shares
Some Years Later...
1 year ago
374.1K views
0 shares
I'd Rather Die Of Thirst
1 year ago
329.9K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++