|
发表于 2013-3-20 00:15:06
|
显示全部楼层
$.getScript("http://www.onicos.com/staff/iz/amuse/javascript/expert/BigInt.js");
bigint_plus(new BigInt('13058219881103201'), '1').toString()
bigInt
用法
Interfaces:// x = new BigInt("1234567890123456789012345678901234567890");// y = new BigInt("0x123456789abcdef0123456789abcdef0");// z = x.clone();// z = bigint_uminus(x);// z = bigint_plus(x, y);// z = bigint_minus(x, y);// z = bigint_mul(x, y);// z = bigint_div(x, y);// z = bigint_mod(x, y);// cmp = bigint_cmp(x, y); /* return -1, 0, or 1 */// num = bigint_number(x); /* convert normal number (may be floating) */ |
|