Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on 1/0 = 0. Parent comment
if (foo == 0): return MAX_FLOAT else: return bar / foo
Then use MAX_FLOAT as an error flag instead of 0, which could have been the result of a legal operation (with bar==0).
There are no comments on this comment yet.
Then use MAX_FLOAT as an error flag instead of 0, which could have been the result of a legal operation (with bar==0).