question: public static double nextUp ( double d ) { if ( d == Double . POSITIVE_INFINITY ) return d ; else { d += 0.0d ; return Double . longBitsToDouble ( Double . doubleToRawLongBits ( d ) + ( ( d >= 0.0d ) ? + 1L : - 1L ) ) ; } }
target:  Replacement for the Math.nextUp(...) method that is only available in HONEYCOMB and higher. Dat's some seeeeek sheeet.