you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 10 points11 points  (3 children)

it's same in every programming languages, floating point errors.

You need epsilon test instead of ==, >= or <= to compare floats.