我基本上总的数量变得非常大。我正在使用float,因为我想保留精度级别,但它只能达到100k。这里是一些示例输出。变量类型的问题
x 361 y 800 width 530 h 800 intensity 93581.52477873862
x 362 y 800 width 530 h 800 intensity 93829.5759344697
x 363 y 800 width 530 h 800 intensity 94079.55780857801
x 364 y 800 width 530 h 800 intensity NaN
x 365 y 800 width 530 h 800 intensity NaN
x 366 y 800 width 530 h 800 intensity NaN
我试过双等,并没有运气!任何人都有什么最适合使用的想法?
感谢
什么编程语言? –
@PaulR道歉 - Java – redrubia
花车可以比这更高,所以别的是错的。参见[这个问题](http://stackoverflow.com/questions/2618059/in-java-what-does-nan-mean)了解NaN含义的一些信息。你的代码是无意中被零等分了吗? – DNA