Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Beware of Fast-Math. Parent comment
That can’t be assumed.
You can easily fall into a situation like:
total = large_float_value for _ in range(1_000_000_000): total += .01 assert total == large_float_value
There are no comments on this comment yet.
That can’t be assumed.
You can easily fall into a situation like:
Without knowing the specific situation, it’s impossible to say whether that’s a tolerably small difference.