memesearch
Math.sum Floating Point Fail

Math.sum Floating Point Fail

Download Find similar pictures
Text on the meme
Good news: `Math.sum` is coming to JS as a way to do more precise floating point math Bad news: Math.sum([0.1, 0.2]) === 0.3; false
What it means

A dark-mode social media post announces that JavaScript may get Math.sum for more precise floating-point arithmetic, then shows Math.sum([0.1, 0.2]) === 0.3 returning false. The joke is that even a supposedly precise math feature still fails the classic 0.1 + 0.2 floating-point comparison, making it a reaction to programming bugs and ironic “good news, bad news” situations.

Objects
Tags
Source
Template
Good news, bad news
Type
image
Size
750×631 · 27.1 KiB
Mood
sarcastic, absurd
Language
en
Added