I know you didn't introduce this, but this kind of code should not be part of the documentation, floating point results should never be compared like that. Could you please convert these to integrals?