diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-07-02 20:17:08 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-07-02 20:17:08 (GMT) |
commit | c9c02c4cf3d3e508986d1e7a6840f3ef92f077a6 (patch) | |
tree | 1775a1db59a15af190933ff2542b6051daba1548 /Modules/mathmodule.c | |
parent | 7cafe4d7e466996d5fc32e871fe834e0e0c94282 (diff) | |
download | cpython-c9c02c4cf3d3e508986d1e7a6840f3ef92f077a6.zip cpython-c9c02c4cf3d3e508986d1e7a6840f3ef92f077a6.tar.gz cpython-c9c02c4cf3d3e508986d1e7a6840f3ef92f077a6.tar.bz2 |
Repair docs for math.frexp (they were wrong).
Reported on c.l.py by Kirill Simonov.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 45a865c..e8ef990 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -171,7 +171,9 @@ math_frexp(self, args) static char math_frexp_doc [] = "frexp(x)\n\ \n\ -Return the matissa and exponent for x. The mantissa is positive."; +Return the matissa and exponent of x, as pair (m, e).\n\ +m is a float and e is an int, such that x = m * 2.**e.\n\ +If x is 0, m and e are both 0. Else 0.5 <= abs(m) < 1.0."; static PyObject * |