]> granicus.if.org Git - python/commit
float_abs() again: Guido pointed out that this could screw up in the
authorTim Peters <tim.peters@gmail.com>
Thu, 1 Nov 2001 21:51:15 +0000 (21:51 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 1 Nov 2001 21:51:15 +0000 (21:51 +0000)
commitfaf0cd21edde392d4d30e2e4f7d9fa2fb9973b71
tree5205cc61cb3cb7d64abbca29bf78e5961857f7a3
parent3133f4193763314389930378feec3fd5a4d9d20c
float_abs() again:  Guido pointed out that this could screw up in the
presence of NaNs.  So pass the issue on to the platform libm fabs();
after all, fabs() is a std C function because you can't implement it
correctly in portable C89.
Objects/floatobject.c