Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca7cc7 commit 54cfbb2Copy full SHA for 54cfbb2
1 file changed
Doc/library/math.rst
@@ -219,6 +219,13 @@ Number-theoretic and representation functions
219
220
If *x* is equal to *y*, return *y*.
221
222
+ Examples:
223
+
224
+ * ``math.nextafter(x, math.inf)`` goes up: towards positive infinity.
225
+ * ``math.nextafter(x, -math.inf)`` goes down: towards minus infinity.
226
+ * ``math.nextafter(x, 0.0)`` goes towards zero.
227
+ * ``math.nextafter(x, math.copysign(math.inf, x))`` goes away from zero.
228
229
.. versionadded:: 3.9
230
231
.. function:: perm(n, k=None)
0 commit comments