nextToward

Returns the next value after or before x, toward y.

  1. D1 nextAfter(D1 x, D2 y)
  2. alias nextToward = nextAfter
    alias nextToward = nextAfter

Throws

InvalidOperationExceptioneither x or y is signaling NaN
OverflowExceptionresult is ±∞
UnderflowExceptionresult is subnormal or ±0.0
InexactExceptionresult is ±∞, subnormal or ±0.0

Special values

xynextAfter(x, y)
NaNanyNaN
anyNaNNaN
x = yx
x < ynextUp(x)
x > ynextDown(x)

Meta