]> granicus.if.org Git - python/commitdiff
Repair docs for math.frexp (they were wrong).
authorTim Peters <tim.peters@gmail.com>
Sun, 2 Jul 2000 20:17:08 +0000 (20:17 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 2 Jul 2000 20:17:08 +0000 (20:17 +0000)
Reported on c.l.py by Kirill Simonov.

Modules/mathmodule.c

index 45a865c47dfd77d24372083575f3ade29f153bbd..e8ef9909543ae8c9e51fe8af4ea399ed92c408cc 100644 (file)
@@ -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 *