{"_id":"financial-arithmetic-functions","_rev":"17-a8e6d88a6e4550cfbb2ad51ba37329c0","name":"financial-arithmetic-functions","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.0":{"name":"financial-arithmetic-functions","version":"1.0.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@1.0.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"2bf4466f4ea9c235d034f8052e9fbfd028a66035","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-1.0.0.tgz","integrity":"sha512-rbQ25UHEC6Rtot8uDhbV7+o1dHfjReEuLi/i1l9Nfa7gz7bnZSASqtNdJfISFdvJhOfPTZ00wR6Q38NJ09AL0g==","signatures":[{"sig":"MEQCIAFY88m2wwqvUiO3hox0l//QZcYvQEqeNo1gbhj7JHO2AiBlOJxlu7Zby9Ict9hskNM5haVVA0m22LoO+rpEPy4I9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2bf4466f4ea9c235d034f8052e9fbfd028a66035","gitHead":"5084b9208c0e7ba74142b2dc4eb45a5d7bd2cddf","scripts":{"test":"jsmd readme.md && tape test/*.js"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"3.3.12","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"5.1.1","dependencies":{"jsbn":"0.1.0"},"devDependencies":{"jsmd":"0.3.1","tape":"4.2.2"}},"1.1.0":{"name":"financial-arithmetic-functions","version":"1.1.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@1.1.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"ce8ddbb7d71de476b9126cfcb440b80817671157","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-1.1.0.tgz","integrity":"sha512-QeqaCtmsxONSG8I1wb5PHMnLjlHCfxURjS/dN9HpvGwfMHYZxne1IhTKt/1vn7Q9tvnqDWLDssY0dRXUNfiL0w==","signatures":[{"sig":"MEUCIQDB2Upi1wK12r3Y4EOm6XQSk+etry2nst8rE897Kl352QIgZzoBRpKVsKBAtYrKqlmtKhjNqvSMOMWfNNdd/tm+KUA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ce8ddbb7d71de476b9126cfcb440b80817671157","gitHead":"b6ee2f506382713d903057b5664eb46ab475b3ff","scripts":{"test":"npm run test:node && npm run test:browserify && npm run test:readme","test:node":"tape test/*.js","test:readme":"jsmd readme.md","test:browserify":"browserify test/test.js | node"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"3.3.12","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"5.1.1","dependencies":{"jsbn":"0.1.0"},"devDependencies":{"jsmd":"0.3.1","tape":"4.2.2","browserify":"12.0.1"}},"1.1.1":{"name":"financial-arithmetic-functions","version":"1.1.1","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@1.1.1","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"0d561ca43ec73a465f2e4a15d6e090bb9af394fb","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-1.1.1.tgz","integrity":"sha512-GCKJaZ+NLZZzofU747An3lUE9sO82vkBkss0npZz7/alcHZNCA+s8orTVzGv6/6QihTi5YjfrY2ReFs/em/3nw==","signatures":[{"sig":"MEUCIQDMLh2iDDwbvlZeJNBWo6i6mQAbZezaHoW1elHsdd+PMAIgdndJXNoUO+XbmpIotxREM6S8LeTiXxvIzM66KToJ2Z8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0d561ca43ec73a465f2e4a15d6e090bb9af394fb","gitHead":"0b5dabd31633b89e6897bce52814b04f13bdcb13","scripts":{"test":"npm run test:node && npm run test:browserify && npm run test:readme","test:node":"tape test/*.js | faucet","test:readme":"jsmd readme.md","test:browserify":"browserify test/test.js | node | faucet"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"3.3.12","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"5.1.1","dependencies":{"jsbn":"0.1.0"},"devDependencies":{"jsmd":"0.3.1","tape":"4.2.2","faucet":"0.0.1","browserify":"12.0.1"}},"1.1.2":{"name":"financial-arithmetic-functions","version":"1.1.2","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@1.1.2","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"da4c7d337e7da4221fc859d9427c51ec5f43100d","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-1.1.2.tgz","integrity":"sha512-n6u7J0/FM2aX06bzClCHdEMRIx0pP+uvdsG5VdvOxjKgu4MTRM76X00EsTguB4rC14vOKUwjvpKxZlXreuHxqQ==","signatures":[{"sig":"MEUCIE93Akyl8XZPAA7+rqJk+Lmm4kaEOxaLcFgn7zqKX4KoAiEA/Zx9KKMDVX5k749OOm6karbAbsBvPq9slPBQkHaa9oc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"da4c7d337e7da4221fc859d9427c51ec5f43100d","gitHead":"dea15289ebac129c407fdae92a0acb6ddb2f6047","scripts":{"test":"npm run test:node && npm run test:browserify && npm run test:readme","test:node":"tape test/*.js | faucet","test:readme":"jsmd readme.md","test:browserify":"browserify test/test.js | node | faucet"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"3.3.12","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"5.1.1","dependencies":{"jsbn":"0.1.0"},"devDependencies":{"jsmd":"0.3.1","tape":"4.2.2","faucet":"0.0.1","browserify":"12.0.1"}},"1.1.3":{"name":"financial-arithmetic-functions","version":"1.1.3","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@1.1.3","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"a543297b3b58fd71869b1d35663ba5d5cc52f3c3","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-1.1.3.tgz","integrity":"sha512-C0LXGcBFpZg00STvpiukB35UeGpSh0ZQtXKBk6uZiSq+KKU6Rqqwsl4ezUocQGMgmoGBhiHJjv13/kTrBlYunw==","signatures":[{"sig":"MEUCIQCU1SZLDONP5YqCsdZ6xMFuQq/QtSnxxV/RY0RBXzmGJAIgWChCnHlejPnuEF9+nH4JruqLhAcgdD/RbZLfC5AmfsI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a543297b3b58fd71869b1d35663ba5d5cc52f3c3","gitHead":"168c1bb356b7848821493a978afd5b65bf406d7d","scripts":{"test":"npm run test:node && npm run test:browserify && npm run test:readme","test:node":"tape test/*.js | faucet","test:readme":"jsmd readme.md","test:browserify":"browserify test/test.js | node | faucet"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"3.3.12","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"5.1.1","dependencies":{"jsbn":"0.1.0"},"devDependencies":{"jsmd":"0.3.1","tape":"4.2.2","faucet":"0.0.1","browserify":"12.0.1"}},"2.0.0":{"name":"financial-arithmetic-functions","version":"2.0.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@2.0.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"ff72417a51a1ca608c0d9890d2be0d3945abff91","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-2.0.0.tgz","fileCount":6,"integrity":"sha512-1d35jNtKVZVhhtHidS/7kAGaryWDHbUEaIMRWohlC8ANnli/BYQDCyEofep14eduIdWirkBeLDkBD1Ot2E54vw==","signatures":[{"sig":"MEYCIQDP0cN9Qg1ztV6uLX+v7pT0orgR8vPOhH+fvfzgsXg5kAIhAPGGsX+YHjzTVjVlPlEnBcYjD1hA7pJ7YnPBiOl8jJK/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6gIOCRA9TVsSAnZWagAAfegP/31g4/jd9Sap8k5rvIis\nzJ6sAxK8dIfRrEMWA1QfgR2NVY6acEQy5zOoT4CG6JySvsYjO4R9S2Nmaf2R\nBlYXYzKmiyt64vI1GVvtj1WY4nPL4PX1Ruu5h6tR3Y0F5PUgVptnixeTXSI9\nIPYVcYI9ueDVPw22TgVnDEg5VO/uiWjxB4LiMEcnD+OxDoKWaCKSnDnyidlL\n5eyTeJ8XpuEqj3uYZK7GAIT6fcD/RTkjSmVBXuaPYx+lusbtLgEwAMaTN5GV\nqkeJ3oYB+8cllz04IYKtAV74A3Rz/gBQoFhDp5TsU9drHBnY1d2q49E7WGPV\nEQKfZsu6CN6g7rCC95sASJh3zhVOmYSl2aHN70wFEjKGCzQK2wYCec4JtzaL\nNi2U7xVwOSJjZeU9ncfKN9OU4WwJM/R3vGwdNKfj4gNyAm+1H2h8n368Fdxh\n3xcO/p7mhTcHoO+eJZftLToOXAg3fLO05b490USbw1qO4A4qn6lTZdeKcP8E\nzTsEJMz+sbZWP87irAVz5dE+vu1AXf0eEsHA8hleN0Y4VppzAlzaY7G1wfyz\n9wTmwHSaR+gSi+BOdW0W0n+1PIvcLVj22o2o5BMCQgb/MBvGHOI1YGvPbs/W\nLxvBV61k9k6VydhxD4Z0E7Virqm9iOvEzQpKrOFvjGQdbdFtVeVOVSvESLkB\nZo+T\r\n=WeNt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ae8bd12033c629fed93466a5b0bd4986cafc95e9","scripts":{"test":"npm run test:node && npm run test:readme","test:node":"tape test/*.js | faucet","test:readme":"jsmd readme.md"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"6.2.0","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"10.8.0","dependencies":{"jsbi":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jsmd":"1.0.0","tape":"4.9.1","faucet":"0.0.1"},"_npmOperationalInternal":{"tmp":"tmp/financial-arithmetic-functions_2.0.0_1542062605293_0.7991604013604416","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"financial-arithmetic-functions","version":"2.0.1","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@2.0.1","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"62973e89d89e41d9190c6c89e2f61783b2cfb63b","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-2.0.1.tgz","fileCount":6,"integrity":"sha512-iq83/a3yZCz1ETA1UcSaZEk8UfdxmHgGok/d6y6uedTr9rg2xQnRwfli3OEVSTCQ4dtAh1JSq1edyOtUOh65eg==","signatures":[{"sig":"MEUCIQDG61OEcl8xmxOPD6Cjbb4yXd9ATur9zhSy4es92upRywIgLyLxNDDXw2qFIBTebkf9y/PlcutUfYuSh6D70Can3xY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7YNZCRA9TVsSAnZWagAAvTgP/A2CP69eNMiCJZlnqAed\nclzZkX0ao+KMMNtCWruYmDAAZAgFziVIHqmuwW+ojPTaGIlIHlnV7J5lVN4l\nerVohPHLEcpbAAeqVQ0mOloyEPS1TxTPhD4zBnP4fVO5IKQdxkfrXL/fg00K\nEQ4ZIWyyziR3Js5TpigcAzW94+DLZR6ATeiiUnPj1zrs92H3/uIZErm55/4y\nU0Thv/2h71DQK0Fdr1DSRSW3T7TlNpnLeRxIsgRcdju2AKagKKIKYjZb2wxH\nk1dkBk3DRorhQHg60CPjCRiy4nXVfs5shyw5Y4GYcMuMPrFJxPpZK6ZnBb5k\nPYJ59Lsk72Y0uqIa9GoRjdNbYgQk2ONJVBdYLiZajzteimAYrCxlSZWNArHZ\n1t5SBdqm0jZN+VvKM106AjrBP+xW02O7WdoSWxJ/prtlwXTKSk3kwkUyJje3\nlxlAOUlyvRn0XnByi+5Bv9CXN/9tyAEdmrAYaLGwXfxiwCUTlAvSsfT9SmW5\n5s2KE79PTyt3+aocwJmCvjFUPYEIgfAuNgqhia0ILl3ShH8Ncw6lVUDZOM29\nUV3lBBvPNig7ygkfAYrof5A24AOJnHPThjfh2x3OfvqGYeDVviNHcW0Uz79j\n3FGGYtUOmISRFZw6mvKgqB770Y1dLACfwvWvwkQ5hoAoIYN+6Cc8kIJmg7HP\nqWAR\r\n=LA3U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"1aec3e5218e59e0bfee430025a9566c0b7015bef","scripts":{"test":"npm run test:node && npm run test:readme","test:node":"tape test/*.js | faucet","test:readme":"jsmd readme.md"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"6.2.0","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"10.8.0","dependencies":{"jsbi":"~2.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jsmd":"1.0.0","tape":"4.9.1","faucet":"0.0.1"},"_npmOperationalInternal":{"tmp":"tmp/financial-arithmetic-functions_2.0.1_1542292313147_0.43860542185185314","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"financial-arithmetic-functions","version":"3.0.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@3.0.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"ba0355156d0819d309504a638f7911e49418bb03","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-3.0.0.tgz","fileCount":6,"integrity":"sha512-F+qhrcA6GMQM/KH1nobal/7GhWUjNGe7wuSKoK5HqD1kHneOzeAi3/vS18DWCEezFXhSAtj61nDeJqy5vf1X+A==","signatures":[{"sig":"MEYCIQDgj8394Xroik6XNu5E6YS7i3lm0UkIFKKBSbvgj9nfgwIhAKMLSfJoBZ+B8ex1WF9DuRcceCcLWI7d1YysX4F0ZGnx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1+2gCRA9TVsSAnZWagAAFSQP/RmQFeMFRtT+ZjeOVN2e\n1FEOJhpibbwNuZhlFNafq7qK49UhqmILYwYf2Ech4NQNkOyC3QbmHTFkWkRF\nzX7rPzuLFqF/m4JIwdgJc59X2YNH4sLRquBIFdTRcRRGkq5CAD6z8EA8lVSt\n5ysP0ZSzEA2kOFI7VA4TVX7wtql6bBvqw/FRqc4ev7XBJvEy/Ww58TddYtSj\nOpzXuFESbmfO2exAkvuFTV0qIPKnyQuJnMQYtsKyo1MpE4NU+4EA8qlJDNyf\nSMh7BYGTatquozuALv7vwAde3c9CkmEnK6fLODhVQgVcfUDjt34/K4pRhBu9\nRumV7o67PhPEhrbT+v437rRqhe9LfaUyLFtsmdyFb9jTegaEiQhpASDYYUU5\n8d3BxytXuzpm+nY2R0KPX0lWWARSuaNS3XD3CW/fYJbfkroLf4Xo9AHLBto3\n1jqR1kSY5LMSqcTl7mnqJbK0HcoU3KmBCj8GVLbby7dhaYPrj3RUukNRxFyH\nPj2YNrZOTfpiT2Nbm1oewkiB4QoF9ZMeNexEbDzPotsQO+lukxGY0REHzo8A\nhs6rqFsvx9PqhT2wk+mBMD7gX4ZdI61/VdTaVnNeYqI6JWqwpDBUh88WVy5K\nDXZKLKIjl6O3ROAuNVQKbjMcxb64L2icilu9dqh2FBiLFhrvAobHPku8meLH\nyJa+\r\n=ZKhs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"b5431e6505f0644accf46c97d7c1d4d8c2c16ca1","scripts":{"test":"npm run test:node && npm run test:readme","test:node":"tape test/*.js | faucet","test:readme":"jsmd readme.md"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"6.9.0","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"10.16.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jsmd":"1.0.0","tape":"4.9.1","faucet":"0.0.1"},"_npmOperationalInternal":{"tmp":"tmp/financial-arithmetic-functions_3.0.0_1591209375475_0.8170098436088362","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"financial-arithmetic-functions","version":"3.1.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@3.1.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"b89732762b8cd2a6119243bbce635271673058e7","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-3.1.0.tgz","fileCount":6,"integrity":"sha512-HKVjDBzTlNzkw0DSaclIE107X1N7XGKPJtx3Wfw9PWo9+zAAIIBBF9Cru70VUjFz4EfecuNT09xdZ310wxRdVA==","signatures":[{"sig":"MEQCIBpNaxe69Ppp5Fhn29oyJJY2IaQHu9hS3N3lmgCfmd3vAiARpgbewuLN60xMyOlijVHg7x91zkpQi+VpMDmRpKYJEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhu3iNCRA9TVsSAnZWagAA9fIP/30X0/IjTQeRZ8GDkjO4\nQMpnYDTDLTDEqmszPHF7DvAIyCB2BM+JDuqwWByFSmmmevpucFWxm56Mr/Mw\n2lzmz1IKyRCA7Ka4NG0vzTO/FaC1ge3yZ6MU9+CFwahjbPQGrfjrbuXsb7ZO\nhA66mkOahqTkV4P5GVABfjyKo3CUxLDX9ICsO8KRD0HbsLg6SmvfaCfm8LDn\nuSU0PBD5vk+OcKRgDAQyVJ9hwYea5+02MqINd+HG0dIsYmyou3MfmgtXvD2i\nRtZCP0SzKV//4fZOH/a5nebxqRw7LGdpAle21nS4+SC+IcYqAVuQFh1VAaSu\nSkAKPgz9S94+EdXeQps7OFxYLZnLjyli6t1LsYZLPuKaEt3FMY2TPhiDuRQq\nLpbvXMQ7vXx2hYuyMqoI+PXB2AQY9ENsBWpQteR8KMVhxd0ftJkPSW4qFJFR\nCE+a/x2lOWf4vCd29lGnfhGQgwgKZkics7h9inv0OPTGnPlKaAhs/Gj66zkF\nIyily1B4M5aiSExILOopgg8LE4cFZ9BjlXZVyvjkxm21cuXsn4uOasHwahwZ\nK5Vphf9ptlRMaNDSaMpROVoyR3/vBsWAAS2Nnd4212AqE65lgMKRhUAFzPjB\npF+Krg21qnQNaS1qJ8/zWlSkFn6CHNPfDlqb72/HgARDGqMDMP9lHI4GQnwR\nLAdF\r\n=5TYE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"f528c07270e8ecaf3cc65a87d7267ca73a69ed1f","scripts":{"test":"npm run test:node && npm run test:readme","test:node":"tape test/*.js | faucet","test:readme":"jsmd readme.md"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"8.1.4","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"16.13.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jsmd":"^1.0.2","tape":"4.9.1","faucet":"0.0.1"},"_npmOperationalInternal":{"tmp":"tmp/financial-arithmetic-functions_3.1.0_1639676045167_0.13929683027968087","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"financial-arithmetic-functions","version":"3.2.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@3.2.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"9afd59ae70517b6994f0966744df34c7df4a1a26","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-3.2.0.tgz","fileCount":10,"integrity":"sha512-oVMrkocaPD8acRIJUztWdv0obbAa1n0MTTNnykr0bfAN5x994rxAcKZaTHvJ8QFDkEPh+txmB6eAGJ4ZxvTuKg==","signatures":[{"sig":"MEUCIQDdlrbyVffazacGp0WvA7NDHCKMB3KeGPctG3eWldSs2gIgaOayjtP+UGkmYEKy9IIR8INyEFRF2r03UbwwPKHYVBI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJif8WrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7/Q/+ICQdMpBqMlPWfAJ2IN1/2LMU/V1Oe4QhYUhUPPEGk5bAPEg7\r\nP/uHU68VFRB5uQMYp8wTfNT6SQRA//9EVK0yJz+u3P9D11v6BXGH3m1XstVe\r\nw+RxsftBxeWTSAv7LF1crIm8/dFPFqZq5VHsDYjgl7POGiNmP7SR2Q1a5to9\r\nb8wcS2rh/B7EtVM6RV35svMoBPl5yEQYj5Hkdlo0Ry4gBMKHhrreNcaNu6Pn\r\n61ObeXgE8SD3kSQwuiw2J2iJe3szOQ6HKGX6x9SWb68ddyAgxBngSSbIQ2YX\r\npeHSWEhglRmVr+CzSlS9KRmKhHnNmlQUFwX/b3bcuNQIUzZIctpmGLhxLqWt\r\nxnzvv+yHxdEUpdHfOA8sQ/BtesLSGzY47W2FQbloXafSpVbldp4sTRXDq0fT\r\nwyTWeaq6SSabJumG0a2sVHl0K/U4XjJVgg3aU3HHWHBqhzIgArKlN88XvfUu\r\nzVLyVJlddTtUP81qvq7wq4Cgy2OdCR+iZ8sCqny8k+p0iOcjooa9z83eeQuo\r\nK/K7/ODR/yrAVhr24NtREyZWpy3TtBVu0jpkVCN7nPYvFtytGcItnIjAD8he\r\nbJAWUUY/2BUpQT2RdPdDMXL2k8hza4WYgi0FQnNCiL/MX0KGIMPjaPEqePO6\r\nxjTuBAP6NpcGDdTeaT2B5t7u3tSqvjNbPx0=\r\n=COSi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./index.d.ts","module":"index.mjs","exports":{".":{"import":"./index.mjs","require":"./index.cjs"}},"gitHead":"f307673829b89aa824e10245be9adb4eb43a819b","scripts":{"test":"run-p test:*","build":"run-p build:*","build:cjs":"esbuild index.ts --bundle --format=cjs --outfile=index.cjs","build:esm":"esbuild index.ts --bundle --format=esm --outfile=index.mjs","test:lint":"eslint .","test:node":"tsm test/test.ts | faucet","test:types":"tsc --noEmit","build:types":"tsc index.ts --emitDeclarationOnly --declaration","test:readme":"jsmd readme.md"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"8.6.0","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"16.8.0","_hasShrinkwrap":false,"devDependencies":{"tsm":"^2.2.1","jsmd":"^1.0.2","tape":"4.9.1","eslint":"^8.11.0","faucet":"0.0.1","esbuild":"^0.14.39","@types/tape":"^4.13.2","npm-run-all":"^4.1.5","@typescript-eslint/parser":"^5.16.0","@typescript-eslint/eslint-plugin":"^5.16.0"},"_npmOperationalInternal":{"tmp":"tmp/financial-arithmetic-functions_3.2.0_1652540843218_0.2047028802747035","host":"s3://npm-registry-packages"}},"3.3.0":{"name":"financial-arithmetic-functions","version":"3.3.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@3.3.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"3c67c57e479f5387740778260da8a28f5958e7d3","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-3.3.0.tgz","fileCount":10,"integrity":"sha512-diSznowJPqNH+gThG+2uaoObXfxgTb2Z3Y+5odX8GVrgBIaVjq6jAK4POmqMmc6PI3DT5U6aaaHMCzLdKlHhOw==","signatures":[{"sig":"MEUCIQDAn575aaFaLVmkLTbr8lkpfxZ8aZ+9EHx5S6yNTRY/0AIgDGTUCUSwfK4PFdIF5gQvZy0KIFLTGIdOn0rfuGQ8nGk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53779},"main":"index.cjs","types":"./index.d.ts","module":"index.mjs","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"bc4a69f84f08ab556b275c1bb73128ea3c4f830a","scripts":{"test":"run-p test:*","build":"run-p build:*","build:cjs":"esbuild index.ts --bundle --format=cjs --outfile=index.cjs","build:esm":"esbuild index.ts --bundle --format=esm --outfile=index.mjs","test:node":"npm run build_test && node test/test.mjs","build_test":"esbuild test/test.ts --bundle --format=esm --outfile=test/test.mjs","test:types":"tsc --noEmit","build:types":"tsc index.ts --emitDeclarationOnly --declaration","test:readme":"jsmd readme.md"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"8.1.4","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"20.15.1","_hasShrinkwrap":false,"devDependencies":{"uvu":"^0.5.6","jsmd":"^2.0.0","esbuild":"^0.14.39","typescript":"^5.7.3","@types/node":"^22.13.4","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/financial-arithmetic-functions_3.3.0_1739719985718_0.4683983337951294","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"financial-arithmetic-functions","version":"4.0.0","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","_id":"financial-arithmetic-functions@4.0.0","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"dist":{"shasum":"6424e08a429f10f53a25e7bc72b2708a6ea976af","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-4.0.0.tgz","fileCount":5,"integrity":"sha512-lNQxu1p2Cf3hFfQJ6Xp4Qa8kukaZCAYZEhxZfq4cJOpChglnA7iquAilqB4Ws6ND+BFrwzVO7RteoCZrkDq/tA==","signatures":[{"sig":"MEUCIQCPa1awGsyXbgGzkW0XKI0R1Aw6KgHdnaqOe9wmFABuWAIgfJmnPIQa3JfcKYB5tvVST5RQA3OmJuJqU2DtyvuXCsE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9431},"main":"index.cjs","types":"./index.d.ts","module":"index.mjs","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"9e12f8ac885b28b9e4c0b61061da9e0e43d8e03c","scripts":{"test":"run-p test:*","build":"run-p build:*","build:cjs":"esbuild index.ts --bundle --format=cjs --outfile=index.cjs","build:esm":"esbuild index.ts --bundle --format=esm --outfile=index.mjs","test:node":"node --test test/test.ts","test:types":"tsc --noEmit","build:types":"tsc index.ts --emitDeclarationOnly --declaration --target esnext --skipLibCheck"},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"repository":{"url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git","type":"git"},"_npmVersion":"11.6.4","description":"A set of functions for doing math on numbers without floating point numbers","directories":{},"_nodeVersion":"24.10.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.14.39","typescript":"^5.7.3","@types/node":"^22.13.4","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/financial-arithmetic-functions_4.0.0_1764711370940_0.9510355647796009","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"financial-arithmetic-functions","version":"4.1.0","description":"A set of functions for doing math on numbers without floating point numbers","main":"index.cjs","module":"index.mjs","exports":{".":{"require":"./index.cjs","import":"./index.mjs","types":"./index.d.ts"}},"scripts":{"test:node":"node --test test/test.ts","test:types":"tsc --noEmit","test":"run-p test:*","build:cjs":"esbuild index.ts --bundle --format=cjs --outfile=index.cjs","build:esm":"esbuild index.ts --bundle --format=esm --outfile=index.mjs","build:types":"tsc index.ts --emitDeclarationOnly --declaration --target esnext --skipLibCheck","build":"run-p build:*"},"repository":{"type":"git","url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git"},"keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"author":{"name":"TehShrike"},"license":"WTFPL","bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","devDependencies":{"@types/node":"^22.13.4","esbuild":"^0.14.39","npm-run-all":"^4.1.5","typescript":"^5.7.3"},"gitHead":"3309e9c45c2b0d78bb8921e119457181a6442477","types":"./index.d.ts","_id":"financial-arithmetic-functions@4.1.0","_nodeVersion":"24.10.0","_npmVersion":"11.6.4","dist":{"integrity":"sha512-TVV8L4sfQSVWLyRA27C1FkMAsFEl4WySGO5dKEljyWbqndh28cMQ23N+FfqcWDhrlQTkWviQjc0F3xldWQOagw==","shasum":"fc53657d07ffb27a153522dd4e3546519948dae5","tarball":"https://registry.npmjs.org/financial-arithmetic-functions/-/financial-arithmetic-functions-4.1.0.tgz","fileCount":5,"unpackedSize":10395,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDXT8o10uly//pbmiEn+6XqgKOuW/F8p9SZL+Ra1UWAEwIhAPhBksgnd3lHgwBGJ80R6cFt28CL5yAbACK1JOZaHu+g"}]},"_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"directories":{},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/financial-arithmetic-functions_4.1.0_1764713499702_0.963370149385621"},"_hasShrinkwrap":false}},"time":{"created":"2015-12-12T04:24:51.261Z","modified":"2025-12-02T22:11:40.125Z","1.0.0":"2015-12-12T04:24:51.261Z","1.1.0":"2015-12-12T21:28:01.742Z","1.1.1":"2015-12-12T21:38:47.078Z","1.1.2":"2015-12-13T00:41:24.192Z","1.1.3":"2015-12-13T01:38:59.275Z","2.0.0":"2018-11-12T22:43:25.384Z","2.0.1":"2018-11-15T14:31:53.273Z","3.0.0":"2020-06-03T18:36:15.589Z","3.1.0":"2021-12-16T17:34:05.623Z","3.2.0":"2022-05-14T15:07:23.389Z","3.3.0":"2025-02-16T15:33:05.886Z","4.0.0":"2025-12-02T21:36:11.156Z","4.1.0":"2025-12-02T22:11:39.920Z"},"bugs":{"url":"https://github.com/TehShrike/financial-arithmetic-functions/issues"},"author":{"name":"TehShrike"},"license":"WTFPL","homepage":"https://github.com/TehShrike/financial-arithmetic-functions#readme","keywords":["financial","arithmetic","math","money","number","bigint","bignumber"],"repository":{"type":"git","url":"git+https://github.com/TehShrike/financial-arithmetic-functions.git"},"description":"A set of functions for doing math on numbers without floating point numbers","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"readme":"A set of functions for doing financial arithmetic.  This is a library you could use to build a friendlier money-math library, like the [financial-number](https://github.com/TehShrike/financial-number) library.\n\n1. Takes bigints only: value + decimal places (d.p.)\n2. Does all math with the native [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) implementation\n3. Multiplication results have d.p. that is twice the d.p. of their inputs. `9.55` * `1.50` = `14.3250`\n4. Addition and subtraction results have a d.p. as great as the highest d.p. of the two inputs. `1.5` + `1.00` = `2.50`\n\n```ts\nimport * as math from 'financial-arithmetic-functions'\n```\n\n<!-- js\nconst math = require('./')\n-->\n\n# Representation of a number\n\n```ts\ntype FinancialNumberValue = {\n\tvalue: bigint\n\tdecimal_places: bigint // >=0\n}\n```\n\n# functions\n\n## validate(input)\n\nCan you pass it in to any of the other functions?  (i.e. are `value` and `decimal_places` both bigints, and is `decimal_places` >=0)\n\n```js\nmath.validate({ value: 123n, decimal_places: 0n }) // => true\nmath.validate({ value: 123444n, decimal_places: 3n }) // => true\nmath.validate({ value: 123n, decimal_places: -1n }) // => false\nmath.validate({ value: 123, decimal_places: 0n }) // => false\n```\n\n## add(a, b)\n\n```js\nmath.add({ value: 123n, decimal_places: 0n }, { value: 9999n, decimal_places: 3n }) // => { value: 132999n, decimal_places: 3n }\nmath.add({ value: 11n, decimal_places: 1n }, { value: 1234n, decimal_places: 3n }) // => { value: 2334n, decimal_places: 3n }\nmath.add({ value: 5n, decimal_places: 0n }, { value: 987876765654543432321n, decimal_places: 0n }) // => { value: 987876765654543432326n, decimal_places: 0n }\n```\n\n## subtract(a, b)\n\n```js\nmath.subtract({ value: 123n, decimal_places: 0n }, { value: 100n, decimal_places: 0n }) // => { value: 23n, decimal_places: 0n }\nmath.subtract({ value: 44n, decimal_places: 0n }, { value: -11n, decimal_places: 0n }) // => { value: 55n, decimal_places: 0n }\nmath.subtract({ value: 10000n, decimal_places: 4n }, { value: 4n, decimal_places: 3n }) // => { value: 9960n, decimal_places: 4n }\n```\n\n## multiply(a, b)\n\n```js\nmath.multiply({ value: 123n, decimal_places: 0n }, { value: 1n, decimal_places: 4n }) // => { value: 123n, decimal_places: 4n }\nmath.multiply({ value: 9999n, decimal_places: 2n }, { value: 14n, decimal_places: 0n }) // => { value: 139986n, decimal_places: 2n }\n```\n\n## modulo(dividend, divisor)\n\n```js\nmath.modulo({ value: 10n, decimal_places: 0n }, { value: 2n, decimal_places: 0n }) // => { value: 0n, decimal_places: 0n }\nmath.modulo({ value: 100n, decimal_places: 1n }, { value: 2n, decimal_places: 0n }) // => { value: 0n, decimal_places: 1n }\nmath.modulo({ value: 1233n, decimal_places: 2n }, { value: 1n, decimal_places: 0n }) // => { value: 33n, decimal_places: 2n }\nmath.modulo({ value: 1233n, decimal_places: 2n }, { value: 100n, decimal_places: 2n }) // => { value: 33n, decimal_places: 2n }\n```\n\n## pow(base, exponent)\n\n```js\nmath.pow({ value: 2n, decimal_places: 0n }, 3n) // => { value: 8n, decimal_places: 0n }\nmath.pow({ value: 25n, decimal_places: 1n }, 2n) // => { value: 625n, decimal_places: 2n }\nmath.pow({ value: 11n, decimal_places: 1n }, 3n) // => { value: 1331n, decimal_places: 3n }\n```\n\n## normalizeToSameDecimalPlaces(a, b)\n\nTakes two values and returns their values scaled to the same number of decimal places.\n\nReturns `{ a: bigint, b: bigint, decimal_places: bigint }`.\n\n```js\nmath.normalizeToSameDecimalPlaces({ value: 12n, decimal_places: 1n }, { value: 3456n, decimal_places: 4n }) // => { a: 12000n, b: 3456n, decimal_places: 4n }\nmath.normalizeToSameDecimalPlaces({ value: 1234n, decimal_places: 3n }, { value: 56n, decimal_places: 1n }) // => { a: 1234n, b: 5600n, decimal_places: 3n }\nmath.normalizeToSameDecimalPlaces({ value: 100n, decimal_places: 0n }, { value: 200n, decimal_places: 0n }) // => { a: 100n, b: 200n, decimal_places: 0n }\n```\n","readmeFilename":"readme.md"}