Comment on Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? (2013)parentComments−millstone12yComparing floats for equality is equivalent to a comparison with zero tolerance, not an uncontrolled tolerance.Consider storing a timestamp as a number of seconds since the epoch. We might use == to check if the timestamp has changed.
Comments
Comparing floats for equality is equivalent to a comparison with zero tolerance, not an uncontrolled tolerance.
Consider storing a timestamp as a number of seconds since the epoch. We might use == to check if the timestamp has changed.