public static double ulp (double d)

Returns the size of an ulp of the argument. An ulp, unit in
the last place, of a ` double`

value is the positive
distance between this floating-point value and the ```
double
```

value next larger in magnitude. Note that for non-NaN
*x*, `ulp(-`

.
*x*) == ulp(*x*)

Special Cases:

- If the argument is NaN, then the result is NaN.
- If the argument is positive or negative infinity, then the result is positive infinity.
- If the argument is positive or negative zero, then the result is
`Double.MIN_VALUE`

. - If the argument is ±
`Double.MAX_VALUE`

, then the result is equal to 2^{971}.

`d` | the floating-point value whose ulp is to be returned |

Diagram: Math