Comment on What every computer scientist should know about floating-point arithmetic (1991) [pdf]parentComments−kccqzy5moI have a relaxed rule for myself: if I’m using the == operator on floats, I must write a comment explaining why. I use == for maybe once a year.
Comments
I have a relaxed rule for myself: if I’m using the == operator on floats, I must write a comment explaining why. I use == for maybe once a year.