Advertisements
To fix the error of Double.MIN_NORMAL not defined, replace it with
Double.longBitsToDouble(0x0010000000000000L)
Double.MIN_NORMAL is a constant holding the smallest positive normal value of type double, 2-1022.