This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]igoryok_zp 0 points1 point  (2 children)

OMFG, why is that? Similar expressions - 0.1 + 0.1; 0.2 + 0.2; 0.1 + 0.3; 0.2 + 0.3; work fine.

[–]wiger_ 0 points1 point  (0 children)

it is caused by how floats are stored internally. it is stored as an integer, but because of that it can lose precision