{"_id":"math-float64-get-high-word","_rev":"4-c9d98f6ceda13b4a0f56349e3a4b8487","name":"math-float64-get-high-word","description":"Returns a 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"math-float64-get-high-word","version":"0.0.0","description":"Returns a 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.","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-get-high-word.git"},"keywords":["math.io","math-io","mathematics","math","compute.io","compute-io","computation","compute","float64","floating-point","float","double","dbl","words","word","high","sign","signbit","significand","mantissa","exponent","fraction","ieee754"],"bugs":{"url":"https://github.com/math-io/float64-get-high-word/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-bits":"^1.0.0","math-floor":"^1.0.1","math-power":"^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","utils-left-pad-string":"^1.0.1","utils-repeat-string":"^1.0.3"},"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":"d7190e816f2d40fa3cda026815a0e326f293ef7b","homepage":"https://github.com/math-io/float64-get-high-word#readme","_id":"math-float64-get-high-word@0.0.0","_shasum":"f461dab9757877137970ffc029912c42ed558a75","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"f461dab9757877137970ffc029912c42ed558a75","tarball":"https://registry.npmjs.org/math-float64-get-high-word/-/math-float64-get-high-word-0.0.0.tgz","integrity":"sha512-jVnfD43jz3seRNdbHSmCMU3draJeLZvEVyIeDK5zdSJ2e1pLbPYIkZG6IEtGRl3YNHQm9S7ystViXsN40c3/uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXKJkSV51BUU1E8JEQ1WpFCHySAczvwAY6h4jT+KR8sAiEAm0NM7tnAdsKdQifKdEna1AEPrCmsX90/No6viD++gE4="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"math-float64-get-high-word","version":"1.0.0","description":"Returns a 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.","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-get-high-word.git"},"keywords":["math.io","math-io","mathematics","math","compute.io","compute-io","computation","compute","float64","floating-point","float","double","dbl","words","word","high","sign","signbit","significand","mantissa","exponent","fraction","ieee754"],"bugs":{"url":"https://github.com/math-io/float64-get-high-word/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-bits":"^1.0.0","math-floor":"^1.0.1","math-power":"^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","utils-left-pad-string":"^1.0.1","utils-repeat-string":"^1.0.3"},"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":"448082d4a5ffc43f093fdf3364290bde5abcdf85","homepage":"https://github.com/math-io/float64-get-high-word#readme","_id":"math-float64-get-high-word@1.0.0","_shasum":"9fb7107e366585d5bb0efddc036f947c9666611a","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"9fb7107e366585d5bb0efddc036f947c9666611a","tarball":"https://registry.npmjs.org/math-float64-get-high-word/-/math-float64-get-high-word-1.0.0.tgz","integrity":"sha512-kSmcZEyDx/mS9Zahx5kKU/eVggrSvN2MZ/CLTgk7N0we41vqnpFUpoAeNMW5kj+1dJu4EhnMdgiP9P1xiwr7ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAvCS5sZZdqHGVx9kG3j3g9yQiZ/Gkx/ys1s8jCEXTrgIgbN0azNSPqsTghY5U0zdLWs4DqMOxRlJckn8OizrdxH4="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"High Word\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> Returns an unsigned 32-bit integer corresponding to the more significant 32 bits of a [double-precision floating-point number][ieee754].\n\n\n## Installation\n\n``` bash\n$ npm install math-float64-get-high-word\n```\n\n\n## Usage\n\n``` javascript\nvar highWord = require( 'math-float64-get-high-word' );\n```\n\n#### highWord( x )\n\nReturns an unsigned 32-bit `integer` corresponding to the more significant 32 bits of a [double-precision floating-point number][ieee754].\n\n``` javascript\nvar w = highWord( 3.14e201 );\n// returns 1774486211 => 01101001110001001000001011000011\n```\n\n\n## Examples\n\n``` javascript\nvar floor = require( 'math-floor' );\nvar pow = require( 'math-power' );\nvar highWord = require( 'math-float64-get-high-word' );\n\nvar frac;\nvar exp;\nvar w;\nvar x;\nvar i;\n\nfor ( i = 0; i < 100; i++ ) {\n\tfrac = Math.random() * 10;\n\texp = -floor( Math.random()*324 );\n\tx = frac * pow( 10, exp );\n\tw = highWord( x );\n\tconsole.log( 'x: %d. high word: %d.', x, w );\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-get-high-word.svg\n[npm-url]: https://npmjs.org/package/math-float64-get-high-word\n\n[build-image]: http://img.shields.io/travis/math-io/float64-get-high-word/master.svg\n[build-url]: https://travis-ci.org/math-io/float64-get-high-word\n\n[coverage-image]: https://img.shields.io/codecov/c/github/math-io/float64-get-high-word/master.svg\n[coverage-url]: https://codecov.io/github/math-io/float64-get-high-word?branch=master\n\n[dependencies-image]: http://img.shields.io/david/math-io/float64-get-high-word.svg\n[dependencies-url]: https://david-dm.org/math-io/float64-get-high-word\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/math-io/float64-get-high-word.svg\n[dev-dependencies-url]: https://david-dm.org/dev/math-io/float64-get-high-word\n\n[github-issues-image]: http://img.shields.io/github/issues/math-io/float64-get-high-word.svg\n[github-issues-url]: https://github.com/math-io/float64-get-high-word/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","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-19T16:39:02.993Z","created":"2016-01-19T23:52:33.316Z","0.0.0":"2016-01-19T23:52:33.316Z","1.0.0":"2016-01-19T23:52:54.713Z"},"homepage":"https://github.com/math-io/float64-get-high-word#readme","keywords":["math.io","math-io","mathematics","math","compute.io","compute-io","computation","compute","float64","floating-point","float","double","dbl","words","word","high","sign","signbit","significand","mantissa","exponent","fraction","ieee754"],"repository":{"type":"git","url":"git://github.com/math-io/float64-get-high-word.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-get-high-word/issues"},"license":"MIT","readmeFilename":"README.md"}