This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: math.fabs documentation is misleading
Type: Stage:
Components: Documentation Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, quiver, tim.peters
Priority: normal Keywords:

Created on 2003-03-23 00:26 by quiver, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Messages (2)
msg15235 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2003-03-23 00:26
math.fabs documentation is misleading.
It says,
"Return the absolute value of the floating point number 
x. ".
but I think it should look like this:
"Return the absolute value of x as a float."

See the code below.

>>> from math import *
>>> abs(3)
3
>>> fabs(3)
3.0
msg15236 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2003-04-28 21:34
Logged In: YES 
user_id=31435

Assigned to Fred.  I removed words from the fabs docs, for 
consistency with the other descriptions, and added a note 
that *all* functions in this module return floats.  There's 
nothing special about math.fabs() in this respect, and I don't 
want to end every description with "as a float".  If you're 
happy with this, please close the bug.
History
Date User Action Args
2022-04-10 16:07:51adminsetgithub: 38203
2003-03-23 00:26:32quivercreate