nextafter returns return the next representable double following <var1> in the direction of <var2>. If <var2> is less than <var1>, it returns the largest representable number less than <var1>. If <var1> and <var2> are equal, the functions return <var2>.
<var1> and <var2> are a number or a double and the result is a double.