Skip to content

Commit 4fddbe5

Browse files
committed
docs: Correct the documentation for math.frexp.
1 parent 1babb6d commit 4fddbe5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/library/math.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ Functions
9090

9191
.. function:: frexp(x)
9292

93-
Converts a floating-point number to fractional and integral components.
93+
Decomposes a floating-point number into its mantissa and exponent.
94+
The returned value is the tuple ``(m, e)`` such that ``x == m * 2**e``
95+
exactly. If ``x == 0`` then the function returns ``(0.0, 0)``, otherwise
96+
the relation ``0.5 <= abs(m) < 1`` holds.
9497

9598
.. function:: gamma(x)
9699

0 commit comments

Comments
 (0)