logoalt Hacker News

aragilartoday at 10:25 AM0 repliesview on HN

You don't need NaN (or Inf) to have unexpected behaviour with floats and naive loops in lua, using 1e52 is enough. Conflating floating point and integers (independent of encoding) is always a bit of a trap.