In Java, what does NaN mean?

后端 未结 11 2408
时光说笑
时光说笑 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:50

    Not a Java guy, but in JS and other languages I use it's "Not a Number", meaning some operation caused it to become not a valid number.

提交回复
热议问题