I found this article interesting, but the HN title ("Off-by-one error...") doesn't match the article's, or its conclusion?
The article mentions a boundary condition ("_share_price > 0"), not an off-by-one error.
The article mentions a boundary condition ("_share_price > 0"), not an off-by-one error.
And these are discrete numbers, so I don't see the problem.
A huge fraction of off by one errors are > vs >= or < vs <= in a for loop.