Serhiy Storchaka added the comment: I think it is the right result. >>> 0.0 / float('nan') nan ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22604> _______________________________________