Logo
AI is no match for Natural Stupidity.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp 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

Ieee754 Memes

Posts tagged with Ieee754

Stop Doing NaNs

Javascript Programming Debugging Frontend Webdev
22 days ago 65.9K views 0 shares
Stop Doing NaNs
Ah, the eternal JavaScript nightmare: NaN (Not a Number) - which ironically is a number type that doesn't equal itself. Because that makes perfect sense! The IEEE 754 floating-point standard really outdid itself here. "Let's create a special value that represents calculation errors but make it behave in the most counterintuitive ways possible!" My favorite part is JavaScript trying to be helpful: "You want to convert 'hello' to a number? Sure thing! Here's a NaN for your trouble. No errors thrown, just silent mathematical chaos." And then we wonder why our date calculations suddenly think it's the year NaN. The hex(983061) at the bottom is the cherry on top - it's 0xF00D61, or "FOOD A1". Even the hexadecimal is trolling us.

Spotlight

Portable Power Station

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

Ad React Version Migration Survival Kit

For when npm update causes 873 breaking changes and existential dread
TheraICE Headache Relief Cap | ProgrammerHumor.io
Purchase this to fund our 'Explain Blockchain to Your Grandma' training program. ⛓️