{"_id":"new-eslint","_rev":"2-61cacc62a31679115c308645da221781","name":"new-eslint","dist-tags":{"latest":"7.0.6"},"versions":{"7.0.5":{"name":"new-eslint","version":"7.0.5","keywords":["arbitrary","precision","arithmetic","big","number","decimal","float","biginteger","bigdecimal","bignumber","bigint","bignum"],"author":{"name":"Michael Mclaughlin","email":"M8ch88l@gmail.com"},"license":"MIT","_id":"new-eslint@7.0.5","maintainers":[{"name":"he.s.h.u.lal.a","email":"he.s.h.u.lal.a@gmail.com"}],"homepage":"https://github.com/MikeMcl/big.js#readme","bugs":{"url":"https://github.com/MikeMcl/big.js/issues"},"dist":{"shasum":"5caff974ef503bc10fb120958e1b78330bae7c02","tarball":"https://registry.npmjs.org/new-eslint/-/new-eslint-7.0.5.tgz","fileCount":5,"integrity":"sha512-IihA49/Cnl7beKKA/JFi/8TjMLCEtL4GjE2qZ31odOxQPNV5KxZA/8n9xfjIc3ZzYlFjVXS73unbfEtRGuCShQ==","signatures":[{"sig":"MEUCIHTs0VJKQz3qbXVAQxwd+wx91aS3Zj+flBEzPAah+JoUAiEAxrBo2/wj68BFrJDSmHHw/txtGRsBbZa93AsBVUtquzw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61043},"main":"big","module":"big.mjs","browser":"big.js","engines":{"node":"*"},"exports":{".":{"import":"./big.mjs","require":"./big.js"},"./big.js":"./big.js","./big.mjs":"./big.mjs","./package.json":"./package.json"},"funding":{"url":"https://opencollective.com/bigjs","type":"opencollective"},"scripts":{"test":"node ./test/runner.js"},"_npmUser":{"name":"he.s.h.u.lal.a","email":"he.s.h.u.lal.a@gmail.com"},"repository":{"url":"git+https://github.com/MikeMcl/big.js.git","type":"git"},"_npmVersion":"11.13.0","description":"A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic","directories":{},"_nodeVersion":"24.17.0","dependencies":{"eslint-helper":"4.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/new-eslint_7.0.5_1781810964225_0.857079732589918","host":"s3://npm-registry-packages-npm-production"}},"7.0.6":{"name":"new-eslint","description":"A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic","version":"7.0.6","keywords":["arbitrary","precision","arithmetic","big","number","decimal","float","biginteger","bigdecimal","bignumber","bigint","bignum"],"exports":{".":{"import":"./big.mjs","require":"./big.js"},"./big.mjs":"./big.mjs","./big.js":"./big.js","./package.json":"./package.json"},"repository":{"type":"git","url":"git+https://github.com/MikeMcl/big.js.git"},"main":"big","browser":"big.js","module":"big.mjs","author":{"name":"Michael Mclaughlin","email":"M8ch88l@gmail.com"},"bugs":{"url":"https://github.com/MikeMcl/big.js/issues"},"engines":{"node":"*"},"license":"MIT","scripts":{"test":"node ./test/runner.js"},"funding":{"type":"opencollective","url":"https://opencollective.com/bigjs"},"dependencies":{"eslint-helper":"4.0.2"},"_id":"new-eslint@7.0.6","homepage":"https://github.com/MikeMcl/big.js#readme","_nodeVersion":"24.17.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-bGXcPHqIiT8d2UmXYQLj600ReVng37nCzjvP+k5EOTdHPrR8rCrtM39M2IufzC9/zRvRO6Ewa/IFHer3DFA0og==","shasum":"f3d3286a4622cfcee567463698ee45bd56cfc685","tarball":"https://registry.npmjs.org/new-eslint/-/new-eslint-7.0.6.tgz","fileCount":5,"unpackedSize":61043,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBCWh0QFzV2AZokngpBV4UE4kDgChsoAhFhfhK3lbSl2AiEA/H6mVpovJPPbSoqWE8XH6CIJi+kb+zz5LS6FtJq0+6Y="}]},"_npmUser":{"name":"he.s.h.u.lal.a","email":"he.s.h.u.lal.a@gmail.com"},"directories":{},"maintainers":[{"name":"he.s.h.u.lal.a","email":"he.s.h.u.lal.a@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/new-eslint_7.0.6_1781812855459_0.9520376229210921"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-18T19:29:24.145Z","modified":"2026-06-18T20:00:55.709Z","7.0.5":"2026-06-18T19:29:24.366Z","7.0.6":"2026-06-18T20:00:55.604Z"},"bugs":{"url":"https://github.com/MikeMcl/big.js/issues"},"author":{"name":"Michael Mclaughlin","email":"M8ch88l@gmail.com"},"license":"MIT","homepage":"https://github.com/MikeMcl/big.js#readme","keywords":["arbitrary","precision","arithmetic","big","number","decimal","float","biginteger","bigdecimal","bignumber","bigint","bignum"],"repository":{"type":"git","url":"git+https://github.com/MikeMcl/big.js.git"},"description":"A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic","maintainers":[{"name":"he.s.h.u.lal.a","email":"he.s.h.u.lal.a@gmail.com"}],"readme":"# big.js\r\n\r\n**A small, fast JavaScript library for arbitrary-precision decimal arithmetic.**\r\n\r\n[![npm version](https://img.shields.io/npm/v/big.js.svg)](https://www.npmjs.com/package/big.js)\r\n[![npm downloads](https://img.shields.io/npm/dw/big.js)](https://www.npmjs.com/package/big.js)\r\n[![CI](https://github.com/MikeMcl/big.js/actions/workflows/ci.yml/badge.svg)](https://github.com/MikeMcl/big.js/actions/workflows/ci.yml)\r\n\r\n## Features\r\n\r\n- Simple API\r\n- Faster, smaller and easier-to-use than JavaScript versions of Java's BigDecimal\r\n- Only 6 KB minified\r\n- Replicates the `toExponential`, `toFixed` and `toPrecision` methods of JavaScript Numbers\r\n- Stores values in an accessible decimal floating point format\r\n- Comprehensive [documentation](http://mikemcl.github.io/big.js/) and test set\r\n- No dependencies\r\n- Uses ECMAScript 3 only, so works in all browsers\r\n\r\nThe little sister to [bignumber.js](https://github.com/MikeMcl/bignumber.js/) and [decimal.js](https://github.com/MikeMcl/decimal.js/). See [here](https://github.com/MikeMcl/big.js/wiki) for some notes on the difference between them.\r\n\r\n## Install\r\n\r\nThe library is the single JavaScript file *big.js* or the ES module *big.mjs*.\r\n\r\n### Browsers\r\n\r\nAdd Big to global scope:\r\n\r\n```html\r\n<script src='path/to/big.js'></script>\r\n```\r\n\r\nES module:\r\n\r\n```html\r\n<script type='module'>\r\nimport Big from './path/to/big.mjs';\r\n</script>\r\n```\r\n\r\nGet a minified version from a CDN:\r\n\r\n```html\r\n<script src='https://cdn.jsdelivr.net/npm/big.js@7.0.1/big.min.js'></script>\r\n```\r\n\r\n### [Node.js](http://nodejs.org)\r\n\r\n```bash\r\n$ npm install big.js\r\n```\r\n\r\nCommonJS:\r\n\r\n```javascript\r\nconst Big = require('big.js');\r\n```\r\n\r\nES module:\r\n\r\n```javascript\r\nimport Big from 'big.js';\r\n```\r\n\r\n### [Deno](https://deno.land/)\r\n\r\n```javascript\r\nimport Big from 'https://raw.githubusercontent.com/mikemcl/big.js/v7.0.1/big.mjs';\r\nimport Big from 'https://unpkg.com/big.js@latest/big.mjs';\r\n```\r\n\r\n## Use\r\n\r\n*In the code examples below, semicolons and `toString` calls are not shown.*\r\n\r\nThe library exports a single constructor function, `Big`.\r\n\r\nA Big number is created from a primitive number, string, or other Big number.\r\n\r\n```javascript\r\nx = new Big(123.4567)\r\ny = Big('123456.7e-3')                 // 'new' is optional\r\nz = new Big(x)\r\nx.eq(y) && x.eq(z) && y.eq(z)          // true\r\n```\r\n\r\nIn Big strict mode, creating a Big number from a primitive number is disallowed.\r\n\r\n```javascript\r\nBig.strict = true\r\nx = new Big(1)                         // TypeError: [big.js] Invalid number\r\ny = new Big('1.0000000000000001')\r\ny.toNumber()                           // Error: [big.js] Imprecise conversion\r\n```\r\n\r\nA Big number is immutable in the sense that it is not changed by its methods.\r\n\r\n```javascript\r\n0.3 - 0.1                              // 0.19999999999999998\r\nx = new Big(0.3)\r\nx.minus(0.1)                           // \"0.2\"\r\nx                                      // \"0.3\"\r\n```\r\n\r\nThe methods that return a Big number can be chained.\r\n\r\n```javascript\r\nx.div(y).plus(z).times(9).minus('1.234567801234567e+8').plus(976.54321).div('2598.11772')\r\nx.sqrt().div(y).pow(3).gt(y.mod(z))    // true\r\n```\r\n\r\nLike JavaScript's Number type, there are `toExponential`, `toFixed` and `toPrecision` methods.\r\n\r\n```javascript\r\nx = new Big(255.5)\r\nx.toExponential(5)                     // \"2.55500e+2\"\r\nx.toFixed(5)                           // \"255.50000\"\r\nx.toPrecision(5)                       // \"255.50\"\r\n```\r\n\r\nThe arithmetic methods always return the exact result except `div`, `sqrt` and `pow`\r\n(with negative exponent), as these methods involve division.\r\n\r\nThe maximum number of decimal places and the rounding mode used to round the results of these methods is determined by the value of the `DP` and `RM` properties of the `Big` number constructor.\r\n\r\n```javascript\r\nBig.DP = 10\r\nBig.RM = Big.roundHalfUp\r\n\r\nx = new Big(2);\r\ny = new Big(3);\r\nz = x.div(y)                           // \"0.6666666667\"\r\nz.sqrt()                               // \"0.8164965809\"\r\nz.pow(-3)                              // \"3.3749999995\"\r\nz.times(z)                             // \"0.44444444448888888889\"\r\nz.times(z).round(10)                   // \"0.4444444445\"\r\n```\r\n\r\nThe value of a Big number is stored in a decimal floating point format in terms of a coefficient, exponent and sign.\r\n\r\n```javascript\r\nx = new Big(-123.456);\r\nx.c                                    // [1,2,3,4,5,6]    coefficient (i.e. significand)\r\nx.e                                    // 2                exponent\r\nx.s                                    // -1               sign\r\n```\r\n\r\nFor advanced usage, multiple Big number constructors can be created, each with an independent configuration.\r\n\r\nFor further information see the [API](http://mikemcl.github.io/big.js/) reference documentation.\r\n\r\n## Minify\r\n\r\nTo minify using, for example, npm and [terser](https://github.com/terser/terser)\r\n\r\n```bash\r\n$ npm install -g terser\r\n```\r\n\r\n```bash\r\n$ terser big.js -c -m -o big.min.js\r\n```\r\n\r\n## Test\r\n\r\nThe *test* directory contains the test scripts for each Big number method.\r\n\r\nThe tests can be run with Node.js or a browser.\r\n\r\nRun all the tests:\r\n\r\n```bash\r\n$ npm test\r\n```\r\n\r\nTest a single method:\r\n\r\n```bash\r\n$ node test/toFixed\r\n```\r\n\r\nFor the browser, see *runner.html* and *test.html* in the *test/browser* directory.\r\n\r\n*big-vs-number.html* is a old application that enables some of the methods of big.js to be compared with those of JavaScript's Number type.\r\n\r\n## TypeScript\r\n\r\nThe [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped) project has a Typescript type definitions file for big.js.\r\n\r\n```bash\r\n$ npm install --save-dev @types/big.js\r\n```\r\n\r\nAny questions about the TypeScript type definitions file should be addressed to the DefinitelyTyped project.\r\n\r\n## Licence\r\n\r\n[MIT](LICENCE.md)\r\n\r\n## Contributors\r\n\r\n<a href=\"graphs/contributors\"><img src=\"https://opencollective.com/bigjs/contributors.svg?width=890&button=false\" /></a>\r\n\r\n## Financial supporters\r\n\r\nThank you to all who have supported this project via [Open Collective](https://opencollective.com/bigjs), particularly [Coinbase](https://www.coinbase.com/).\r\n\r\n<img src=\"https://opencollective.com/bigjs/sponsor/0/avatar.svg\">\r\n","readmeFilename":"README.md"}