The value of the result is the nearest machinerepresentable number to X that is either less than X (if S<0) or greater than X (if S>0).
Like many intrinsic functions, this is elemental; if either (or both) of X and S is an array, the result will be an array with that shape, with the value being computed elementwise.
