In Java, what does NaN mean?

后端 未结 11 2368
时光说笑
时光说笑 2020-11-22 14:00

I have a program that tries to shrink a double down to a desired number. The output I get is NaN.

What does NaN mean in Java?<

11条回答
  •  迷失自我
    2020-11-22 14:46

    Not a valid floating-point value (e.g. the result of division by zero)

    http://en.wikipedia.org/wiki/NaN

提交回复
热议问题