Difference between Infinity and NaN (Not a number)

后端 未结 3 676
难免孤独
难免孤独 2020-12-20 23:58

When does java print Infinity and when does it print NaN?

Why is 1.0/0.0 infinity but ((1.0/0.0) - (1.0/0.0)) NaN and 0.0f/0.0f an NaN?

What is the differenc

3条回答
提交回复
热议问题