What is the difference between javascript double and java double

时间:2018-05-06 17:15:55

标签: javascript java

I need to sort very small values. These values are come from javascript to java.

There is difference between java value and javascript value

"9.466330862652141E-30" in javascript

is

"9.466330862652142E-30" in java

"javascript double" use IEEE 754 (11 exponent bits) "java double" also use IEEE 754 (11 exponent bits)

I know about 100% precision of 15 decimal point. But I don't need accuracy.. I just need completely same value between javascript and java.

What is the cause of my case?

0 个答案:

没有答案