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 programming meme shows an announcement that JavaScript is getting Math.sum for more precise floating-point math, followed by code where Math.sum([0.1, 0.2]) === 0.3 evaluates to false. The joke mocks JavaScript’s infamous floating-point arithmetic problems, making it a reaction to bugs or frustrations caused by imprecise decimal calculations.

Objects
Tags
Source
Type
image
Size
800×550 · 37.7 KiB
Mood
саркастичный, абсурдный
Language
en
Added