[Python-bugs-list] [ python-Bugs-708205 ] math.fabs documentation is misleading

SourceForge.net noreply@sourceforge.net
Thu, 17 Apr 2003 07:51:38 -0700


Bugs item #708205, was opened at 2003-03-22 19:26
Message generated for change (Settings changed) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=708205&group_id=5470

Category: Documentation
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: George Yoshida (quiver)
>Assigned to: Tim Peters (tim_one)
Summary: math.fabs documentation is misleading

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=708205&group_id=5470