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
11 months ago
304,402 views
0 shares
javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
Vanilla JS: Swimming Against The Framework Current
11 months ago
408.2K views
0 shares
Make Every Line Areusable Component
2 years ago
69.8K views
0 shares
Coincidence? I think not
3 years ago
106.7K views
0 shares
Every Programmer Icon Has Angular Brackets And Aslash Because Html Is Not Only Aprogramming Language But Also Theprogramming Language
2 years ago
153.2K views
0 shares
True Happiness Is Closing 100 Chrome Tabs
8 months ago
373.4K views
0 shares
The Great Escape Character
5 months ago
402.6K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp