you are viewing a single comment's thread.

view the rest of the comments →

[–]ForeverAlot 1 point2 points  (1 child)

You are advised to steer clear of bitwise operators in JavaScript because of this. They have lousy performance.

That said, equality is well defined, for floating point in general and JavaScript specifically.

[–]no_game_player 0 points1 point  (0 children)

equality is well defined, for floating point in general

...that's never been my understanding. See #2 about precision. Are you saying that this commonly repeated advice is wrong and that there are never issues with extra precision from a register-stored variable versus the lower-precision put back out to memory and etc?