Hacker News new | past | comments | ask | show | jobs | submit login

The whole function is trying to parse a float value, that loop is looking for the string "Infinity".

c|32 will do a bitwise downcase of an ascii character so, "INFINITY", "infinity", "INfinITy" will all be accepted. In any of those cases i == 8 at the end of the loop and is still in scope, so the following if statement will ultimately return + or - Infinity.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: