Skip to content

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.

number

The starting value.

number

The value to step toward; returned as-is when it equals value, so the sign of a zero result follows it.

number

The adjacent value, direction when the two are equal, or Number.NaN when either is NaN.