Here and elsewhere, this should be ``/2.`` or better (for performance) ``* 0.5``. Actually, I'm kind of surprised this worked correctly before - if given integer input, this should give an incorrect answer.