Comments

That's interesting. It seems like some kind of integer overflow or something? Anything less (like 299999999999999 - 299999999999998) gives 1.

But it seems 399999999999999 - 399999999999997. Gives 2. That's a weird quirk.

i think it's a floating point arithmetic quirk, similar to the Excel bug... not that big of a deal, given the relative magnitude of the error here. but interesting nonetheless.