PyDocs

Nav

Numeric and Mathematical Modules

nextafter

math

function · Added in 3.9
  • nextafter(x, y, steps=1)
Return the floating-point value the given number of steps after x towards y.

If steps is not specified or is None, it defaults to 1.

Raises a TypeError, if x or y is not a double, or if steps is not
an integer.  Raises ValueError if steps is negative.
Changed in 3.12
  • 3.12: Added the steps argument.
0 Examples
No examples for math/nextafter.
See Also
No see-alsos for math/nextafter
0 Notes
No notes for nextafter