fe
fe copied to clipboard
Is this a floating point problem?
A simple loop locks up:
(= i 0)
(while (< i 19000000)
(= i (+ i 1)))
Is there a preferred way to count?
Yes, this is a problem related to floating point numbers. After number 16777216 for 4-byte float the accuracy drops, and incrementation has no effect.