Menu
Build time: When coffee becomes code.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
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
337.0K 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
LG 34U530A-W 34-inch UltraWide WFHD (2560 x 1080) IPS Wide Computer Monitor, 100Hz, VESA DisplayHDR 400, HDMI, DisplayPort, USB Type-C, Tilt/Height/Swivel Stand, White
Affiliate
$299.38
GearScouts.com
Sponsored
Power stations
Ctrl+C: The Silent Developer Killer
Linux
399.3K views
9 months ago