文件名称:javascript-biginteger:JavaScript的大型整数库
文件大小:1.13MB
文件格式:ZIP
更新时间:2024-03-17 03:28:20
javascript math arbitrary-precision biginteger hacktoberfest
javascript-biginteger 使用范例 在Node.js中 const BigInteger = require('./path/to/biginteger').BigInteger; var a = BigInteger('123456789'); var b = BigInteger('10000000000'); var c = BigInteger('987654321'); console.log(a.multiply(b).add(c).toString()); // '1234567890987654321' 在网络浏览器中 [removed][removed] [removed] var a = BigInteger('123456789'); var b = BigInteger('1000
【文件预览】:
javascript-biginteger-master
----.gitignore(50B)
----README.md(876B)
----run-test(97B)
----biginteger.js(623B)
----test()
--------test-exp10.js(388KB)
--------powValues.js(185B)
--------test-isUnit.js(8KB)
--------test-biginteger.js(28KB)
--------test-next.js(13KB)
--------test-toJSValue.js(12KB)
--------test-exp10-errors.js(42KB)
--------test-compareAbs.js(1.3MB)
--------test-valueOf.js(12KB)
--------test-compare.js(1.28MB)
--------test-isNegative.js(9KB)
--------test-isZero.js(8KB)
--------test-toString.js(14KB)
--------test-isEven.js(8KB)
--------test-add.js(1.96MB)
--------test-sign.js(8KB)
--------test-prev.js(13KB)
--------test-divide.js(1.79MB)
--------test-subtract.js(2.01MB)
--------test-modPow.js(1.22MB)
--------test-modPow-errors.js(29KB)
--------test-square.js(17KB)
--------test-isPositive.js(9KB)
--------test-pow-errors.js(3KB)
--------test-pow.js(103KB)
--------test.js(6KB)
--------test-divide-errors.js(12KB)
--------test-isOdd.js(8KB)
--------test-multiply.js(2.13MB)
--------test-abs.js(13KB)
--------test-negate.js(13KB)
----docs()
--------api.md(17KB)
----LICENSE(1KB)
----package.json(794B)
----lib()
--------impl()