2 ms·
Comparing floats for equality is equivalent to a comparison with zero tolerance, not an uncontrolled tolerance. Consider storing a timestamp as a number of sec
by millstone 13y ago
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.