比如python: (14213636171468116403 ^ 3918389676463170483)
#return 17519020606549733888
#return 17519020606549733888
1
pengweiqhca Sep 2, 2014
javascript的integer是一个大整数,在一定范围内你可以认为它是无限大的
|
2
Golevka Sep 2, 2014
@pengweiqhca 啥?
|
3
toctan Sep 2, 2014
JS has only one number type, 64-bit floating point, no integers.
|
4
Mutoo Sep 2, 2014
js的位运算会丢失32位以上的部分。似乎真的没办法支持64位。
|
5
tdwyx Sep 3, 2014
http://mathjs.org/
math.add(math.bignumber('12345678901234567890'), math.bignumber('12345678901234567890')); |
6
tdwyx Sep 3, 2014
又看了下,那个好像没有位运算的功能
|