I have a program that tries to shrink a double down to a desired number. The output I get is NaN.
double
NaN
What does NaN mean in Java?<
Not a valid floating-point value (e.g. the result of division by zero)
http://en.wikipedia.org/wiki/NaN