{"_id":"sinful-math","_rev":"6-3816d78ae7b4c38a21eff8733834cd7a","name":"sinful-math","description":"Simple, safe floating point math.  Based on the Math portion of the sinful.js project at https://github.com/guipn/sinful.js","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"sinful-math","version":"0.0.1","description":"Simple, safe floating point math.  Based on the Math portion of the sinful.js project at https://github.com/guipn/sinful.js","keywords":["sinful","floating-point","math"],"main":"./index.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha"},"homepage":"https://github.com/chipincode/sinful-math","repository":{"type":"git","url":"git://github.com/chipincode/sinful-math.git","web":"https://github.com/chipincode/sinful-math"},"bugs":{"url":"https://github.com/chipincode/sinful-math/issues","email":"chipincode@lee3.net"},"author":{"name":"chipincode","email":"chipincode@lee3.net","url":"http://chipincode.github.com"},"license":"CC-SA-BY-3.0","gitHead":"46586770539bcc12a8e4c87831529300f975ef10","_id":"sinful-math@0.0.1","_shasum":"57de2530263cf600096a8b0ad08117113803576c","_from":"sinful-math","_npmVersion":"1.4.20","_npmUser":{"name":"chipincode","email":"chipincode@lee3.net"},"maintainers":[{"name":"chipincode","email":"chipincode@lee3.net"}],"dist":{"shasum":"57de2530263cf600096a8b0ad08117113803576c","tarball":"https://registry.npmjs.org/sinful-math/-/sinful-math-0.0.1.tgz","integrity":"sha512-F1po/2QSRgxYWRZ4nHC2b7YzYH1vTObDkHF4l1NJ50gCvVW2esxB2QCwYqHMZkgnHBitk38PMo8XEc773576Fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDK9eGn1mknxb7Id8sU+wxCRQauj/b6yaW8skB4PapLAiA/v5FAGNaLMRtLgVIiGoJCrxaKus9tFBEYWYltvmGD9g=="}]}}},"readme":"sinful-math\r\n===========\r\n\r\nsinful-math for node and the browser\r\n------------------------------------\r\n\r\nThis project provides simple, safe floating-point math operations with little overhead.  You get basic arithmetic operations without having to store your numbers in special objects.\r\n\r\nThe functions defined here have their roots in the [sinful.js](http://guipn.github.com/sinful.js/) project.  sinful.js is a functional javascript library that extends the prototypes of the built-in types to provide functional settings similar to Haskell's, and provide for clear, concise and expressive code.  For detailed information on sinful.js, its API, usage, contributors, license, etc., please dive into the [wiki](https://github.com/guipn/sinful.js/wiki/_pages).\r\n\r\n###Usage\r\n\r\nAdding with floating point precision safety:\r\n```\r\n> var add = require('sinful-math').add;\r\n\r\n> 0.1 + 0.2; // ↦ 0.30000000000000004\r\n\r\n> add(0.1, 0.2); // ↦ 0.3\r\n\r\n```\r\n\r\nsinful-math can also apply the math operation to an array:\r\n```\r\n> add([6.0985, -0.035, -0.08]); // ↦ 5.9835\r\n\r\n```\r\n","maintainers":[{"name":"chipincode","email":"chipincode@lee3.net"}],"time":{"modified":"2022-06-26T20:11:35.343Z","created":"2014-08-30T23:35:32.961Z","0.0.1":"2014-08-30T23:35:32.961Z"},"homepage":"https://github.com/chipincode/sinful-math","keywords":["sinful","floating-point","math"],"repository":{"type":"git","url":"git://github.com/chipincode/sinful-math.git","web":"https://github.com/chipincode/sinful-math"},"author":{"name":"chipincode","email":"chipincode@lee3.net","url":"http://chipincode.github.com"},"bugs":{"url":"https://github.com/chipincode/sinful-math/issues","email":"chipincode@lee3.net"},"license":"CC-SA-BY-3.0","readmeFilename":"README.md","users":{"farskipper":true,"chipincode":true}}