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
336,923 views
0 shares
javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
I Am Not Author Rized
11 months ago
303.0K views
0 shares
moar Javascript
2 years ago
165.1K views
0 shares
Frontpage fortune cookie contains infinite loop
5 years ago
207.3K views
0 shares
Slider Of Doom: When Frontend Developers Choose Violence
10 months ago
358.3K views
0 shares
OneOdio A71D Wired Over-Ear Headphones, Studio Monitor Headsets, Hi-Res DJ Stereo Headphone with Foldable Design, 3.5/6.35MM Plug for AMP Recording Podcast Mixing PC Guitar - Black
Affiliate
Headphones
OneOdio
This Needs To Stop Now
2 years ago
161.4K views
0 shares
These isEven posts are lacking in whats most important: documentation
3 years ago
212.4K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++