Logo
Refactoring: Creating tomorrow's legacy code today.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

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

Io-operations Memes

Posts tagged with Io-operations

Fun With Floating Point IO

Debugging Programming Algorithms Math
2 months ago 90.8M views 0 shares
Fun With Floating Point IO
You think you'll just quickly test some floating point I/O operations. Should take 20 minutes tops, right? Wrong. Seven hours later you're still debugging why 0.1 + 0.2 doesn't equal 0.3, why your decimal precision is doing interpretive dance, and questioning every life choice that led you to this moment. Floating point arithmetic is one of those "simple" things that will absolutely destroy your soul. Binary representation can't accurately store most decimal fractions, so you end up with rounding errors that compound faster than technical debt at a startup. What starts as a quick bug fix becomes an existential crisis about IEEE 754 standards. Pro tip: Use decimal types for money, embrace epsilon comparisons, and never, EVER assume floating point equality will work the way math class taught you.

Today's picks

10 Types Of People Binary Code Programmers Binary Code Unframed Poster

10 Types Of People Binary Code Programmers Binary Code Unframed Poster

Affiliate
$15.99
Corporate mergers

Corporate mergers

Programming
194.4K views 4 years ago
I have to pay an extra penny every 2.4 Trillion years

I have to pay an extra penny every 2.4 Trillion years

Programming
86.7K views 2 years ago