Kunal Grover added the comment: This isn't needed. We are taking modulus with 1.0, which already fixes negative values of h. ---------- nosy: +Kunal Grover _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26296> _______________________________________