src/pylib/Lib/math_impl/patch/nextafter

Search:
Group by:
Source   Edit  

translated from https://github.com/scijs/nextafter/blob/master/nextafter.js

And add respect to the sign of zero, e.g.

nextafter(-0.0, 0.0) == 0.0 nextafter(0.0, -0.0) == -0.0

Procs

func nextafter[F](x, y: F): F
Source   Edit