19
0.1 + 0.2 (lemmy.ml)
top 2 comments
sorted by: hot top controversial new old
[-] nyxerus@geddit.social 4 points 1 year ago
[-] MsFlammkuchen 3 points 1 year ago

Floating point arithmetic

Basically, every floating point number represents a range of numbers. Which can lead to small errors like this. It has also to do with trying to represent a decimal number in binary, which works fine for integers but not for rational numbers.

this post was submitted on 24 Jan 2021
19 points (100.0% liked)

Programmer Humor

32571 readers
271 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS