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