question: public static double ulp ( double x ) { if ( Double . isInfinite ( x ) ) { return Double . POSITIVE_INFINITY ; } return abs ( x - Double . longBitsToDouble ( Double . doubleToRawLongBits ( x ) ^ 1 ) ) ; }
target:  Compute least significant bit (Unit in Last Position) for a number.