{"_id":"add","_rev":"2785017","name":"add","description":"A cross-browser, numerically stable algorithm to add floats accurately","dist-tags":{"latest":"2.0.6"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"time":{"modified":"2022-06-16T09:23:53.000Z","created":"2013-11-14T22:49:39.238Z","2.0.6":"2014-07-15T06:29:37.938Z","2.0.5":"2014-06-27T22:30:58.659Z","2.0.4":"2014-06-27T10:45:22.910Z","2.0.2":"2014-06-27T10:35:54.827Z","2.0.1":"2014-06-27T10:12:33.973Z","2.0.0":"2014-06-27T09:44:42.951Z","1.0.0":"2013-11-14T22:49:39.238Z"},"users":{},"author":{"name":"Ben Ng","email":"me@benng.me"},"repository":{"type":"git","url":"https://github.com/ben-ng/add.git"},"versions":{"2.0.6":{"name":"add","version":"2.0.6","description":"A cross-browser, numerically stable algorithm to add floats accurately","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/ben-ng/add.git"},"keywords":["numerically","stable","faithful","rounding","float","error","propagation","summation","accumulate","addition","numerical","analysis"],"devDependencies":{"tape":"2.x.x"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6"]},"author":{"name":"Ben Ng","email":"me@benng.me"},"license":"MIT","bugs":{"url":"https://github.com/ben-ng/add/issues"},"homepage":"https://github.com/ben-ng/add","_id":"add@2.0.6","_shasum":"248f0a9f6e5a528ef2295dbeec30532130ae2235","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"benng","email":"me@benng.me"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"dist":{"shasum":"248f0a9f6e5a528ef2295dbeec30532130ae2235","size":3567,"noattachment":false,"key":"/add/-/add-2.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/add/download/add-2.0.6.tgz"},"directories":{},"publish_time":1405405777938,"_hasShrinkwrap":false,"_cnpm_publish_time":1405405777938,"_cnpmcore_publish_time":"2021-12-16T16:22:00.165Z"},"2.0.5":{"name":"add","version":"2.0.5","description":"A cross-browser, numerically stable algorithm to add floats accurately","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/ben-ng/add.git"},"keywords":["numerically","stable","faithful","founding","float","error","propagation","summation","accumulate","addition","numerical","analysis"],"devDependencies":{"tape":"2.x.x"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"author":{"name":"Ben Ng","email":"me@benng.me"},"license":"MIT","bugs":{"url":"https://github.com/ben-ng/add/issues"},"homepage":"https://github.com/ben-ng/add","gitHead":"266a98b62580ccc1b380b4bb30fdfc0dd8dc3597","_id":"add@2.0.5","_shasum":"cb11afb8fbca507d40816ddc3c58f9be9bfd2105","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"benng","email":"me@benng.me"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"dist":{"shasum":"cb11afb8fbca507d40816ddc3c58f9be9bfd2105","size":3284,"noattachment":false,"key":"/add/-/add-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/add/download/add-2.0.5.tgz"},"directories":{},"publish_time":1403908258659,"_hasShrinkwrap":false,"_cnpm_publish_time":1403908258659,"_cnpmcore_publish_time":"2021-12-16T16:22:00.391Z"},"2.0.4":{"name":"add","version":"2.0.4","description":"A cross-browser, numerically stable algorithm to add floats accurately","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/ben-ng/add.git"},"keywords":["numerically","stable","faithful","founding","float","error","propagation","summation","accumulate","addition","numerical","analysis"],"devDependencies":{"tape":"2.x.x"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"author":{"name":"Ben Ng","email":"me@benng.me"},"license":"MIT","bugs":{"url":"https://github.com/ben-ng/add/issues"},"homepage":"https://github.com/ben-ng/add","gitHead":"3abd9ba4a2688a36f29ba221cf9ac3dcfe040cde","_id":"add@2.0.4","_shasum":"682bc31e70aa3572335cf67990a398e36ebee62a","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"benng","email":"me@benng.me"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"dist":{"shasum":"682bc31e70aa3572335cf67990a398e36ebee62a","size":3217,"noattachment":false,"key":"/add/-/add-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/add/download/add-2.0.4.tgz"},"directories":{},"publish_time":1403865922910,"_hasShrinkwrap":false,"_cnpm_publish_time":1403865922910,"_cnpmcore_publish_time":"2021-12-16T16:22:00.601Z"},"2.0.2":{"name":"add","version":"2.0.2","description":"A numerically stable algorithm to add numbers accurately","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/ben-ng/add.git"},"keywords":["numerically","stable","error","propagation","summation","accumulate","addition","analysis"],"devDependencies":{"tape":"2.x.x"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"author":{"name":"Ben Ng","email":"me@benng.me"},"license":"MIT","bugs":{"url":"https://github.com/ben-ng/add/issues"},"homepage":"https://github.com/ben-ng/add","gitHead":"10128a287197634a15988d1f8df6e583cef49c23","_id":"add@2.0.2","_shasum":"4001a5dd6198975735f2aba4d71dcb8f94f3692e","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"benng","email":"me@benng.me"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"dist":{"shasum":"4001a5dd6198975735f2aba4d71dcb8f94f3692e","size":3205,"noattachment":false,"key":"/add/-/add-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/add/download/add-2.0.2.tgz"},"directories":{},"publish_time":1403865354827,"_hasShrinkwrap":false,"_cnpm_publish_time":1403865354827,"_cnpmcore_publish_time":"2021-12-16T16:22:00.815Z"},"2.0.1":{"name":"add","version":"2.0.1","description":"A numerically stable algorithm to add numbers accurately","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/ben-ng/add.git"},"keywords":["numerically","stable","error","propagation","summation","accumulate","addition","analysis"],"devDependencies":{"tape":"^2.13.3"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"author":{"name":"Ben Ng","email":"me@benng.me"},"license":"MIT","bugs":{"url":"https://github.com/ben-ng/add/issues"},"homepage":"https://github.com/ben-ng/add","gitHead":"8cac4799357e0b709461c9afcbb1ea75a295e7a3","_id":"add@2.0.1","_shasum":"efcb1eb728f352002955f85031bf56f4380ab2b5","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"benng","email":"me@benng.me"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"dist":{"shasum":"efcb1eb728f352002955f85031bf56f4380ab2b5","size":3213,"noattachment":false,"key":"/add/-/add-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/add/download/add-2.0.1.tgz"},"directories":{},"publish_time":1403863953973,"_hasShrinkwrap":false,"_cnpm_publish_time":1403863953973,"_cnpmcore_publish_time":"2021-12-16T16:22:01.014Z"},"2.0.0":{"name":"add","version":"2.0.0","description":"A numerically stable algorithm to add numbers accurately","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/ben-ng/add.git"},"keywords":["numerically","stable","error","propagation","summation","accumulate","addition","analysis"],"author":{"name":"Ben Ng","email":"me@benng.me"},"license":"MIT","bugs":{"url":"https://github.com/ben-ng/add/issues"},"homepage":"https://github.com/ben-ng/add","gitHead":"2ea18e69e9592bb3c6a00de86236f039b89d43bb","_id":"add@2.0.0","_shasum":"38e813d2a9440770f668f1083efdcc536c550564","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"benng","email":"me@benng.me"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"dist":{"shasum":"38e813d2a9440770f668f1083efdcc536c550564","size":2941,"noattachment":false,"key":"/add/-/add-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/add/download/add-2.0.0.tgz"},"directories":{},"publish_time":1403862282951,"_hasShrinkwrap":false,"_cnpm_publish_time":1403862282951,"_cnpmcore_publish_time":"2021-12-16T16:22:01.236Z"},"1.0.0":{"name":"add","version":"1.0.0","description":"Add two numbers","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/add.git"},"main":"index","homepage":"https://github.com/Raynos/add","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/add/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.1.0"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/add/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","_id":"add@1.0.0","dist":{"shasum":"0d366278d2322aa534c37adfed98c3401522312e","size":1791,"noattachment":false,"key":"/add/-/add-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/add/download/add-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"npmbot","email":"raynos2@gmail.com"},"maintainers":[{"name":"benng","email":"me@benng.me"},{"name":"joeybaker","email":"joey@byjoeybaker.com"},{"name":"silviuaavram","email":""}],"directories":{},"publish_time":1384469379238,"_hasShrinkwrap":false,"_cnpm_publish_time":1384469379238,"_cnpmcore_publish_time":"2021-12-16T16:22:01.448Z"}},"readme":"# Add\n\n[![Build Status](https://travis-ci.org/ben-ng/add.svg?branch=master)](https://travis-ci.org/ben-ng/add)\n\n[![browser support](https://ci.testling.com/ben-ng/add.png)\n](https://ci.testling.com/ben-ng/add)\n\nA cross-browser, numerically stable way to add floats in Javascript. Produces a faithful rounding of the sum (the result is an immediate floating-point neighbor of the true value).\n\nAlgorithm: Rump-Ogita-Oishi\n\n## Usage\n\n```javascript\nvar add = require('add')\n  , evil = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7]\n  , dumbsum = function (a,b) { return a+b }\n\nconsole.log(evil.reduce(dumbsum)) => 15.299999999999999\n\nconsole.log(add(evil)) => 15.3\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Ben Ng\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","_attachments":{},"homepage":"https://github.com/ben-ng/add","bugs":{"url":"https://github.com/ben-ng/add/issues"},"license":"MIT"}