next-after
functionv1.11
cljs.math/next-after
(next-after [start direction])Returns the adjacent floating point number to start in the direction of
the second argument. If the arguments are equal, the second is returned.
If either arg is #NaN => #NaN
If both arguments are signed zeros => direction
If start is +-Number/MIN_VALUE and direction would cause a smaller magnitude
=> zero with sign matching start
If start is ##Inf or ##-Inf and direction would cause a smaller magnitude
=> Number/MAX_VALUE with same sign as start
If start is equal to +=Number/MAX_VALUE and direction would cause a larger magnitude
=> ##Inf or ##-Inf with sign matching start
See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#nextAfter-double-double-
Examples
No examples yet. Be the first to add one!