{"_id":"math-float64-from-words","_rev":"4-debecbbdf7fa8537c75987bbd0fe88d4","name":"math-float64-from-words","description":"Creates a double-precision floating-point number from a higher order word and a lower order word.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"math-float64-from-words","version":"0.0.0","description":"Creates a double-precision floating-point number from a higher order word and a lower order word.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"if [ \"${TRAVIS}\" ]; then npm run test-ci; else npm run test-local; fi","test-local":"tape \"./test/*.js\" | tap-spec","test-ci":"npm run test-local && xvfb-run npm run test-browsers","test-cov":"istanbul cover --dir ./reports/coverage --report lcov tape -- \"./test/*.js\"","test-browsers":"browserify -p ./node_modules/proxyquire-universal ./test/*.js | testling | tap-spec","coverage":"istanbul cover --dir ./reports/codecov/coverage --report lcovonly tape -- \"./test/*.js\" && cat ./reports/codecov/coverage/lcov.info | codecov && rm -rf ./reports/codecov"},"main":"./lib","repository":{"type":"git","url":"git://github.com/math-io/float64-from-words.git"},"keywords":["math.io","math-io","mathematics","math","compute.io","compute-io","computation","compute","float64","floating-point","float","double","dbl","from","words","create","high","low","int32","uint32","number","ieee754"],"bugs":{"url":"https://github.com/math-io/float64-from-words/issues"},"dependencies":{"utils-is-little-endian":"^1.0.0"},"devDependencies":{"browserify":"12.x.x","codecov":"1.x.x","const-ninf-float64":"^1.0.0","const-pinf-float64":"^1.0.0","istanbul":"^0.4.1","jshint":"2.x.x","jshint-stylish":"2.x.x","math-float64-to-words":"^1.0.0","math-power":"^1.0.0","math-round":"^1.0.0","proxyquire":"^1.7.3","proxyquire-universal":"^1.0.8","proxyquireify":"^3.0.1","tap-spec":"4.x.x","tape":"4.x.x","testling":"1.x.x"},"testling":{"files":["test/*.js"],"browsers":["iexplore/6.0..latest","firefox/3.0..latest","firefox/nightly","chrome/4.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"license":"MIT","gitHead":"bb9c4c1b5af8b356360c6018ceedcf5239dd5c44","homepage":"https://github.com/math-io/float64-from-words#readme","_id":"math-float64-from-words@0.0.0","_shasum":"2ce0022bfe064870254aff4f02d80d85b0505c75","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"2ce0022bfe064870254aff4f02d80d85b0505c75","tarball":"https://registry.npmjs.org/math-float64-from-words/-/math-float64-from-words-0.0.0.tgz","integrity":"sha512-vuYHadzOhGB4yBEHs/+/U0Qurxk+6mUnijV21/CugD3SAmZ1ywvRxUm93jPD2fidI9mOlR/9vFm0alEiYSd+Pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyGKpR5ViAZF1+Gx9XQlC/t1yoLdtbidzCSLEFCPtdDQIgUWOyCBh2heAoaoBE3zWjIHOqwiEivDbvB384cHMtwyE="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"math-float64-from-words","version":"1.0.0","description":"Creates a double-precision floating-point number from a higher order word and a lower order word.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"if [ \"${TRAVIS}\" ]; then npm run test-ci; else npm run test-local; fi","test-local":"tape \"./test/*.js\" | tap-spec","test-ci":"npm run test-local && xvfb-run npm run test-browsers","test-cov":"istanbul cover --dir ./reports/coverage --report lcov tape -- \"./test/*.js\"","test-browsers":"browserify -p ./node_modules/proxyquire-universal ./test/*.js | testling | tap-spec","coverage":"istanbul cover --dir ./reports/codecov/coverage --report lcovonly tape -- \"./test/*.js\" && cat ./reports/codecov/coverage/lcov.info | codecov && rm -rf ./reports/codecov"},"main":"./lib","repository":{"type":"git","url":"git://github.com/math-io/float64-from-words.git"},"keywords":["math.io","math-io","mathematics","math","compute.io","compute-io","computation","compute","float64","floating-point","float","double","dbl","from","words","create","high","low","int32","uint32","number","ieee754"],"bugs":{"url":"https://github.com/math-io/float64-from-words/issues"},"dependencies":{"utils-is-little-endian":"^1.0.0"},"devDependencies":{"browserify":"12.x.x","codecov":"1.x.x","const-ninf-float64":"^1.0.0","const-pinf-float64":"^1.0.0","istanbul":"^0.4.1","jshint":"2.x.x","jshint-stylish":"2.x.x","math-float64-to-words":"^1.0.0","math-power":"^1.0.0","math-round":"^1.0.0","proxyquire":"^1.7.3","proxyquire-universal":"^1.0.8","proxyquireify":"^3.0.1","tap-spec":"4.x.x","tape":"4.x.x","testling":"1.x.x"},"testling":{"files":["test/*.js"],"browsers":["iexplore/6.0..latest","firefox/3.0..latest","firefox/nightly","chrome/4.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"license":"MIT","gitHead":"a7dc2eda8063998ebe3f1f125d86c2df7181cb06","homepage":"https://github.com/math-io/float64-from-words#readme","_id":"math-float64-from-words@1.0.0","_shasum":"94648f9377f8128a8add54856cba951f6e90a139","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"94648f9377f8128a8add54856cba951f6e90a139","tarball":"https://registry.npmjs.org/math-float64-from-words/-/math-float64-from-words-1.0.0.tgz","integrity":"sha512-4FqlyF6I/5+5IHcmoB4qzbgoqfMuWHDCjyXjqn0Hq367LnUvEHX/4aCrCgoZv6XXPz4pNFg87rtKC03SWJOrOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDusoVrvI3WfEnAR4+A+ei6UBfw6ZCRq+PuvnWGEQvGGAiEA/0u9wBi6codlFMM0tWCx8RS/vCZhKq3RNKMVy50RTKc="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"toFloat64\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n> Creates a [double-precision floating-point number][ieee754] from a higher order word and a lower order word.\n\n\n## Installation\n\n``` bash\n$ npm install math-float64-from-words\n```\n\n\n## Usage\n\n``` javascript\nvar toFloat64 = require( 'math-float64-from-words' );\n```\n\n#### toFloat64( high, low )\n\nCreates a [double-precision floating-point number][ieee754] from a higher order word (unsigned 32-bit `integer`) and a lower order word (unsigned 32-bit `integer`).\n\n``` javascript\nvar val = toFloat64( 1774486211, 2479577218 );\n// returns 3.14e201\n\nval = toFloat64( 3221823995, 1413754136 );\n// returns 3.141592653589793\n\nval = toFloat64( 0, 0 );\n// returns 0\n\nval = toFloat64( 2147483648, 0 );\n// returns -0\n\nval = toFloat64( 2146959360, 0 );\n// returns NaN\n\nval = toFloat64( 2146435072, 0 );\n// returns +infinity\n\nval = toFloat64( 4293918720, 0 );\n// returns -infinity\n```\n\n\n## Notes\n\n*\tFor more information regarding higher and lower order words, see [math-float64-to-words][math-float64-to-words].\n\n\n## Examples\n\n``` javascript\nvar round = require( 'math-round' );\nvar pow = require( 'math-power' );\nvar toFloat64 = require( 'math-float64-from-words' );\n\nvar MAX_UINT;\nvar high;\nvar low;\nvar x;\nvar i;\n\nMAX_UINT = pow( 2, 32 ) - 1;\nfor ( i = 0; i < 100; i++ ) {\n\thigh = round( Math.random()*MAX_UINT );\n\tlow = round( Math.random()*MAX_UINT );\n\tx = toFloat64( high, low );\n\tconsole.log( 'higher: %d. lower: %d. float: %d.', high, low, x );\n}\n```\n\nTo run the example code from the top-level application directory,\n\n``` bash\n$ node ./examples/index.js\n```\n\n\n---\n## Tests\n\n### Unit\n\nThis repository uses [tape][tape] for unit tests. To run the tests, execute the following command in the top-level application directory:\n\n``` bash\n$ make test\n```\n\nAll new feature development should have corresponding unit tests to validate correct functionality.\n\n\n### Test Coverage\n\nThis repository uses [Istanbul][istanbul] as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-cov\n```\n\nIstanbul creates a `./reports/coverage` directory. To access an HTML version of the report,\n\n``` bash\n$ make view-cov\n```\n\n\n### Browser Support\n\nThis repository uses [Testling][testling] for browser testing. To run the tests in a (headless) local web browser, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-browsers\n```\n\nTo view the tests in a local web browser,\n\n``` bash\n$ make view-browser-tests\n```\n\n<!-- [![browser support][browsers-image]][browsers-url] -->\n\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT).\n\n\n## Copyright\n\nCopyright &copy; 2016. The [Compute.io][compute-io] Authors.\n\n\n[npm-image]: http://img.shields.io/npm/v/math-float64-from-words.svg\n[npm-url]: https://npmjs.org/package/math-float64-from-words\n\n[build-image]: http://img.shields.io/travis/math-io/float64-from-words/master.svg\n[build-url]: https://travis-ci.org/math-io/float64-from-words\n\n[coverage-image]: https://img.shields.io/codecov/c/github/math-io/float64-from-words/master.svg\n[coverage-url]: https://codecov.io/github/math-io/float64-from-words?branch=master\n\n[dependencies-image]: http://img.shields.io/david/math-io/float64-from-words.svg\n[dependencies-url]: https://david-dm.org/math-io/float64-from-words\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/math-io/float64-from-words.svg\n[dev-dependencies-url]: https://david-dm.org/dev/math-io/float64-from-words\n\n[github-issues-image]: http://img.shields.io/github/issues/math-io/float64-from-words.svg\n[github-issues-url]: https://github.com/math-io/float64-from-words/issues\n\n[tape]: https://github.com/substack/tape\n[istanbul]: https://github.com/gotwarlost/istanbul\n[testling]: https://ci.testling.com\n\n[compute-io]: https://github.com/compute-io/\n[ieee754]: https://en.wikipedia.org/wiki/IEEE_754-1985\n[math-float64-to-words]: https://github.com/math-io/float64-to-words\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-19T16:39:01.999Z","created":"2016-01-20T02:53:51.913Z","0.0.0":"2016-01-20T02:53:51.913Z","1.0.0":"2016-01-20T02:54:14.370Z"},"homepage":"https://github.com/math-io/float64-from-words#readme","keywords":["math.io","math-io","mathematics","math","compute.io","compute-io","computation","compute","float64","floating-point","float","double","dbl","from","words","create","high","low","int32","uint32","number","ieee754"],"repository":{"type":"git","url":"git://github.com/math-io/float64-from-words.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/math-io/float64-from-words/issues"},"license":"MIT","readmeFilename":"README.md"}