Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
This is odd. The underlying C library modf() returns an integer for the second part. Likewise the Python math.frexp() function returns an integer for the second part. So, I'm not sure why Python's math.modf() returns a float for the second field. ---------- nosy: +mark.dickinson, rhettinger, tim.peters _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38813> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com