Logo
Code is poetry with syntax errors.
  • 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

Money-handling Memes

Posts tagged with Money-handling

Lebron James

Java Programming Debugging Databases Backend
9 months ago 570.4K views 0 shares
Lebron James
Ah yes, the classic floating-point precision nightmare strikes again! LeBron apparently set his user balance to exactly 100 dollars, but because he used a double (floating-point) instead of a proper decimal type for monetary values, the database now cheerfully displays $99.99999999999 instead of a clean $100. The facepalm is well-deserved. Rule #1 of financial applications: never use floating-point types for money! Binary floating-point can't accurately represent decimal fractions like 0.1, leading to these delightful rounding errors that'll have your accounting department hunting you down. Should've used BigDecimal, DECIMAL, or literally anything designed for exact decimal arithmetic. Even the GOAT isn't immune to the IEEE 754 curse. Stick to the fundamentals, King. ๐Ÿ‘‘

Today's picks

Oh Boy

Oh Boy

Debugging
195.5M views 8 days ago
UPLIFT DESK V3 2-Leg Black Laminate Standing Desk โ€“ Adjustable Height, Advanced 1-Touch Memory Keypad, Under Desk Cable Management, Wire Grommets (Black C-Frame, 42 x 24 inch)

UPLIFT DESK V3 2-Leg Black Laminate Standing Desk โ€“ Adjustable Height, Advanced 1-Touch Memory Keypad, Under Desk Cable Management, Wire Grommets (Black C-Frame, 42 x 24 inch)

Affiliate
$569.00
The Matrix Of Web Privacy

The Matrix Of Web Privacy

Databases
492.4K views 1 year ago