Menu
First we build software, then we pray.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Scientific notation Memes
Posts tagged with Scientific notation
Someone Explain This To Me Like Im Five
Javascript
Programming
Debugging
Frontend
Webdev
1 year ago
326.5K views
0 shares
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.
Today's picks
Sleep ZM Blue Light Blocking Glasses for Women + Men - Better Sleep + Anti Eye Strain Protection - Computer Screens & Gaming - Black Wayfarer - 99% Night-time Amber Lens
Affiliate
$39.98
JSON Bourne
Javascript
138.7K views
4 years ago
Hacker man 100
Javascript
208.5K views
4 years ago