nextAfter
nextAfter(
value,direction):number
Defined in: packages/core/src/number/next-after.ts:13
The representable binary64 value adjacent to value in the direction of
direction — C’s nextafter.
Parameters
Section titled “Parameters”number
The starting value.
direction
Section titled “direction”number
The value to step toward; returned as-is when it equals
value, so the sign of a zero result follows it.
Returns
Section titled “Returns”number
The adjacent value, direction when the two are equal, or
Number.NaN when either is NaN.