{"_id":"fp16","_rev":"9-89e9b1001cdf5837a45531e38bf603cd","name":"fp16","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"fp16","version":"0.1.0","keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","_id":"fp16@0.1.0","maintainers":[{"name":"joelg","email":"joelg@mit.edu"}],"homepage":"https://github.com/joeltg/fp16#readme","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"dist":{"shasum":"c7f0e81b94a84ffab5e86399c644289e068f8833","tarball":"https://registry.npmjs.org/fp16/-/fp16-0.1.0.tgz","fileCount":13,"integrity":"sha512-/IsbmdSmweJCznIaivK9oh6joqB+joIitF89UahOY5LATzz7fEoX9whAzYAL3aaqJ6ouOmOOcQgP0fDoVp8uYQ==","signatures":[{"sig":"MEQCIBJ00XzTcU11oO/vep43yVon/AaMnlDAiZjrFIGIXfNoAiB+6dCqG7KZhHkPCVGD1YzPDnybK8hupFKBHkOxcSPgvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQNKHCRA9TVsSAnZWagAAJtYP/1RWbr1gDX3nokfNHerg\n45YHu4KqGCATMGzogCNz7jj5EHq0WldoEdNaOJbzMC10MZrsslbcinJtUVvb\ncZxk8ec2i8y844q7cBzDxrPl/qhC+faayGxLBxMcX2tSYB4LSGaxuu5A9V6o\nHV3xAOpxQuLg9FhyyhlauVyg9SpQ+6v7LQDaAytfHA0nQt5N4LH3fAkG9YYP\nTU7s91l6d0lzUUmSSQkOhQUNDLv3Emsl/XmhFkVZfEyo/S3q9myT1qB6r12a\n0lxF9CN5TOv46KBRTfgWXGh641hRrvCShZ8JURTdXhxbF/qu+nmhtymoikRV\nPCdY9fs/pDjIUjOZleGegBBK8XrqGAKSkxcJIa20IxgjRVKQdb88ci0buShL\nG3oeAn8P836VU2Pm8m3km0sDFN0bOakHcjJ5L2V7gtscygTjPyBJ0TBCB2PY\nNmnht6X8LMPQk/7a82+9x/we7t/FZN4mYymFYWD9Nvf1WWthSa0PNjD5hE68\nP6CBDrse478wlWJNrF4xuU1/c5MSwix8MahE96vU7LYE12rmEJZZ511GFyiQ\nuSGjx9uBNmlFfpa55LLZcPC5i93vcsxuI6ctTxojGwg+NtO/xrGdV6j+GDK8\n+ATZbBVTJMgBU2/GPHsDhUSND6P80cBgS/6WVnSSxQ+g4YuZNvsp+cl8DZp/\n2Zut\r\n=Ru3h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","gitHead":"c05271bbbb4dea6fd7579bf7cc5f41bb1ae95221","scripts":{"test":"ava","build":"tsc"},"_npmUser":{"name":"joelg","email":"joelg@mit.edu"},"repository":{"url":"git+https://github.com/joeltg/fp16.git","type":"git"},"_npmVersion":"7.21.1","description":"Half-precision 16-bit floating point numbers","directories":{},"_nodeVersion":"16.9.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^4.0.0-alpha.2","typescript":"^4.4.3"},"_npmOperationalInternal":{"tmp":"tmp/fp16_0.1.0_1631638151750_0.4036222021022713","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"fp16","version":"0.1.1","keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","_id":"fp16@0.1.1","maintainers":[{"name":"joelg","email":"joelg@mit.edu"}],"homepage":"https://github.com/joeltg/fp16#readme","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"dist":{"shasum":"bf664788e806d4b8272939f27caea53332f26196","tarball":"https://registry.npmjs.org/fp16/-/fp16-0.1.1.tgz","fileCount":13,"integrity":"sha512-eYJNtlUtOL1wqMk5vrIaQ3jQmC7GJNszih4BKolaYMaR9BYqoNLQCCTUqWKAF1rnY8e+j2xakXF00YGPmBoyfg==","signatures":[{"sig":"MEUCIDNPlQto/F/8Tb7xwYurSjW9CwMiKEzoEN1oW17pvH2xAiEAiSS4lN3Is2+aqjxyw8MClBm4mz+Fb2EUFQRs7EIOCLQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQNb7CRA9TVsSAnZWagAAuvAQAJJKnZcWa0gqH54LhrIB\nejoYzUT0fPAJnqJVgcghyG/RtOhduXQG2QSkA4VIs3AFo3BeUlY2Y8mJnX8R\nudPLqaWlFNi8hkQ2sGwWPyD+x1TVurF5vu/CvSFtBRVPmLx8YQ+x0uRMTp0r\n1JvVscMkyDeZIZ4rCmvx6v3krymwSWS/fr7XJBU+Ohjt+nGeZbBhHgHRd1wC\nfyJhGACFsrUwgP3xRao0L5/2wFXs+uSw1FL7Ld+bAkfBLVddtuNDQ+7lkSiL\nOapa7mcoBBKDkgmyOVuz7oRo6nqcBBh54VzeVJD4b/E5DO+zq9fROMU89a3U\nBx6GBJ9kUnoaw4oHusoiOppNx9KkXXeEGkC5ui4QJCtJS1FgstXyN5zs25nO\neYtufAJgPdtYCiAD4RLdPWZZ3xDtdQ3segHy/698vKU1uuV0ue/56uui79/v\nwx9P0K3Padz8hgexampi+CQhkIuX5r1LsnC/wv05ZYpiZPyDvOWYvey7/nlq\nKZa6CFGZFDpeorJJYRIMOk9jSHz0WongV13UgkT3M0Xkq1lvpayovPNdu3RW\nSN2Jmz36gMiFdw5GPRNOO1Q02khMn2BrpbRsRVUH230mRmC6crRIgh61yCr2\nKczWfc02OjW4hkjBYTOAM5PFvpXMYywDCkNuD6BNY9l16pFLcBak8PeI6jRU\nrylg\r\n=dcPj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","gitHead":"e6cdeed0d8ae6658c3571d6911f52bdd468e0606","scripts":{"test":"ava","build":"tsc"},"_npmUser":{"name":"joelg","email":"joelg@mit.edu"},"repository":{"url":"git+https://github.com/joeltg/fp16.git","type":"git"},"_npmVersion":"7.21.1","description":"Half-precision 16-bit floating point numbers","directories":{},"_nodeVersion":"16.9.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^4.0.0-alpha.2","typescript":"^4.4.3"},"_npmOperationalInternal":{"tmp":"tmp/fp16_0.1.1_1631639291028_0.4551219933203683","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"fp16","version":"0.1.2","keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","_id":"fp16@0.1.2","maintainers":[{"name":"joelg","email":"joelg@mit.edu"}],"homepage":"https://github.com/joeltg/fp16#readme","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"dist":{"shasum":"255b9dbb66bb374b5b7dc9cbdfa091f450151bec","tarball":"https://registry.npmjs.org/fp16/-/fp16-0.1.2.tgz","fileCount":13,"integrity":"sha512-5t7UIW7YJ/Zm8zBltvHHPkQyu+s4i0qE4gDbOYxHK6cVU+Cc7BNroAqMSeakPjJy2kyyXy+GlfptOlGOkOHOmQ==","signatures":[{"sig":"MEUCIDfhqvrjxpXlZFSKaHq4BosY3a8hqpSWWOTqJeU6qb9AAiEAh6qNtsxksFIBrZSMh1peeL9yn8jFR8HNukqSt7sC+mE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16546,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQNipCRA9TVsSAnZWagAAK0gP/1rMBGqtknBNYzc2AfXg\nIuPVhp6Hji7DbrxMbllxxMJasb0z7Fx9QmbVv3KQ7WveiMtPv4OY3KezBlII\noXgISRUhgztrqc2r1qIA6WUz0+Xpb6gp4U86mVxeu/vo5Xch1s3Wt4iFBGfk\n2yNAtI8PIOyxJ7YttlqRMOZWyIPteyZ6vMn0f9LlrkvB+v8n0yuxBze4qzDR\nWsPHkmNREnbp0Y0xzelmcf5jm74hMSQUgnUmzDhtEpW5yVJylMofEfSp4vND\nztgD/RlfHm0RZDfVm9X7SpnwlDDBBVdVBPSCIUemprRzcJ3zxhNSYd7jP+qF\nsov4zOZVe3lw/hJ3B/WwCUJfvJwYOdXAgM46UtGQp3qyknfylqr6AJizVXug\nda+NNhAqRR9dqsFh2xQ9NdEygUqev8ky5MWpweLtofTKn8c1mNWvEg/tRN9g\ntCh/JQtIY++Uddftj+7mwwerC+ism63skskHOWEFdPTEI85pA7r6ZpA8PfiP\nOsNegJQD5QsZJmIZdPUxx9mvBkWoCXw30tKj3fqxXpo4VWIxQoEhjDmmYD7I\ntbYaJ7TCzJXs8Bmp0Sq2vsGUBxO4dZ1c+PJ+Az//RUtn7T4cvQ+hooGb1nO/\ncIdvoI2uNTVtHd/a/l31Z+D3Be61CXErOL6VTBj7eWL9H7hSQXOLjtdKg31/\nlyMn\r\n=WJBr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","gitHead":"f3d847988cab9d078c175ac7612e0da6ffdcc37e","scripts":{"test":"ava","build":"tsc"},"_npmUser":{"name":"joelg","email":"joelg@mit.edu"},"repository":{"url":"git+https://github.com/joeltg/fp16.git","type":"git"},"_npmVersion":"7.21.1","description":"Half-precision 16-bit floating point numbers","directories":{},"_nodeVersion":"16.9.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^4.0.0-alpha.2","typescript":"^4.4.3"},"_npmOperationalInternal":{"tmp":"tmp/fp16_0.1.2_1631639721774_0.5519007025433509","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"fp16","version":"0.1.3","keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","_id":"fp16@0.1.3","maintainers":[{"name":"joelg","email":"joelg@mit.edu"}],"homepage":"https://github.com/joeltg/fp16#readme","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"dist":{"shasum":"3baad7072ba581a7da9a1ac9db0e5ca1da0a8cff","tarball":"https://registry.npmjs.org/fp16/-/fp16-0.1.3.tgz","fileCount":13,"integrity":"sha512-IhzbchQ11CL8OOkSaoLvvoo1HbWnt1bghR8QOUM+o7NHxNE/sWnQf6+lqiZtHsm2hTZWSucs6PmAQwaNjJpXMg==","signatures":[{"sig":"MEQCIHNRJ1b59HRDoux0UPWjmcNefLX2qHj6eu6iJq7JIRNqAiAJohTqmsETMlS9uE70FeSTgp3kAwemEL1w51TpB2gtdg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQRlGCRA9TVsSAnZWagAAba8P/iMykY3Rtt7y+wfSZQWz\nsABV+Bwgil/4QnUmMi8n9Bp4CGAbcfzgqbs5ooHIEFdDb+gfQIrSql5lYTQ7\n2Ubh939+KCCKb2dtV3Jp9R976bJJFzw0uX8psrA5ArqYcQPO2PmqKX0NyaAu\n1r9oord1AW+S96CzhlnZR9VOJEWKa/RNZGVv8YaBhMCIDtSQT8sCtTb8c3Qu\nyWaCs9Q00OMOhc8WcDKmTsLdRyD+8EijoHw6Eaee7GV3dyffHiKIqBLvZvfI\n3zvM47W+xGJOnVDwXhZpe4fS5wURTUriLLo6v1ejfItyRVuWGAuKlBaVT/Ar\nJP08rQ8XXX6sj/0UBcSorMf84I/VyAEDh64gbnsuOg+PmqPy4S5YicEIAlaE\nmLYeBOm7tSw+RHq9kO6ve9D6cL4ER0ePVxnUmremGeiwAZDCQIad+r9akyAP\nvHQcvt8FMMpzWCr2TRoP0ZNtWBSwPASMzxXBu3MRG/DTVsxtK/KJkMkals4z\nb/kE2FE6Vw5u3e1FSgXWCaeYmQKVBhX4mGVq5ZnlbLD1dSEUZH1RVaGk3ZRu\nIpmoNIrbA78QVb2LUPmYZipCaAFHY7fMaSWhv/BZ2MgWA54JrPtQHXpBh6n+\nIs/HCBdbuSTAEX4PwaTyYkebZ+Gf35dDYk+ONQyvwEo50ap5taty7STjQpTI\n63f4\r\n=i3mq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","gitHead":"9a2171363d918c10151d608365eadd13fb135b85","scripts":{"test":"ava","build":"tsc"},"_npmUser":{"name":"joelg","email":"joelg@mit.edu"},"repository":{"url":"git+https://github.com/joeltg/fp16.git","type":"git"},"_npmVersion":"7.21.1","description":"Half-precision 16-bit floating point numbers","directories":{},"_nodeVersion":"16.9.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^4.0.0-alpha.2","typescript":"^4.4.3"},"_npmOperationalInternal":{"tmp":"tmp/fp16_0.1.3_1631656262140_0.672717642533835","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"fp16","version":"0.1.4","keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","_id":"fp16@0.1.4","maintainers":[{"name":"joelg","email":"joelg@mit.edu"}],"homepage":"https://github.com/joeltg/fp16#readme","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"dist":{"shasum":"45ba1f9d9133c04777d74e0e7029cc8acb3d3b87","tarball":"https://registry.npmjs.org/fp16/-/fp16-0.1.4.tgz","fileCount":13,"integrity":"sha512-zZrZWSoazE4RZKtb4qZ6IGLDYxyVrCjip2YnucpZg3WDltFA2LuBNrAggJ+hKu9ShEHsQDwWgjgxWgEO0XNazg==","signatures":[{"sig":"MEUCIG4SLgyI2MooQHMtQJMRNjLQ+nZupV9MbODfyMorQiv2AiEA4Y3+P6LUoj0mryWVn7/XhtcSEyuL2uPsDFVmRjYomwQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2rdTCRA9TVsSAnZWagAA52oP/RV21UXYxwH0YtCFvvlD\ngq7W4N29AQ+YbDwqWKZ8rjUhBZi8+aIitTWTlPH5Teegx5d/Ef/vPSMPEKtI\nacTbJNvkz6BMlhbfQXzMY9j5JZYDeq44g4BK4spGpIhiDGHUWt/DJQ4GGFRa\nuAn4DOqnLO9KI2yx0GymLJIuAisIICdUAXq18IdNNbOT7MeYddQeuIww6FqR\n1ye5XXNNE67j7hviaVvXc1HGSeicA7Oj39Qn241l9XrLxSZN/zsNBZCYOjeO\nvblbQbETzpklPb4gkv+nIxr8eTWCxSYlC+196ymofeABrxlxN17JzGUkoHcm\ng8Af7fWDtAr6iz8aIWkTxkeWzh5WjRpB4iLvnUVZ8MV9fbOYLD1dvFjysMHp\nbaLMgF4QeBb9hfeSYg+3shLvnYe3fzr0glaci6fBOc19x0ujOdVdQrOH6sJz\nKxmZ2KoHsLwl1zvwwJL+RqsA9hVycbEJ6rBt1NDd8XMy/StDlBtHr0YxsA/y\n+ogIKTwxse3TinRPVD51kLY4kslGS0taMcCxUm0lsGlZcXGuKFseZejQNBDQ\n9zPO4Ndyb31VwwDTRZVtH1bqX5tgdhRMRnVuOcFep2BvHquDyIlxanbdyPJq\n2J8/DsG1puJRRJ6a4Zm+5NHm3vZet+hgkPDKlcqpqub6SujhaAptFZtGHmdS\nekrt\r\n=JxhY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","gitHead":"2c4384effef6c5dac248d9ebf43ecd1f50d7d4bc","scripts":{"test":"ava","build":"tsc"},"_npmUser":{"name":"joelg","email":"joelg@mit.edu"},"repository":{"url":"git+https://github.com/joeltg/fp16.git","type":"git"},"_npmVersion":"8.1.1","description":"Half-precision 16-bit floating point numbers","directories":{},"_nodeVersion":"16.9.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^4.0.0-rc.1","typescript":"^4.4.3"},"_npmOperationalInternal":{"tmp":"tmp/fp16_0.1.4_1636335174502_0.004339661323272237","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"fp16","version":"0.2.0","keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","_id":"fp16@0.2.0","maintainers":[{"name":"joelg","email":"joelg@mit.edu"}],"homepage":"https://github.com/joeltg/fp16#readme","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"dist":{"shasum":"9bc5283af42ef844e53cb52a5a528b18ff19e19f","tarball":"https://registry.npmjs.org/fp16/-/fp16-0.2.0.tgz","fileCount":13,"integrity":"sha512-rP3kzmANkEOeg99U3b8d9UGkAJV9MUse/2oooxqMwLYjqSe0ZmrqnrCzI3WGobkxTOw4eVQUz0hH9iRkP3WBKg==","signatures":[{"sig":"MEQCIHwRFYNLm8Ov5TUHX74ZVpxEUFu1qF/dTZf+39bhK7JjAiBWltJ27e6GLqZWLcNUniea0LJyAbsMIoClWv9GVqDcNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17045,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCnhDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKDhAAhTQeJldVjinq7djHIpwAu35SJRbTx5FxTVkuxcyLZTJiXL2r\r\nA0a5ZIPfDsmYzWxYOw9tO5Y4MamU2RsT30MjhSMB6zhLEDAWIA4eTJyNOtDr\r\nkXviZWyxIWTrUE89B7HQmJRQO5RmPZIr7lwsv1QpxF7j7mOQWRLmvsfb8jAr\r\nSpK6vLJcSTDprgb7HBAHJ3ji48VMaOnAWDuhQEB7MQFstot28InMYmc+k6UL\r\nuynC6gYbYuPhkYft1aJ+8gYDAHDFKKym4+SWABSqYwdmG4bPK6USZQBpgDBD\r\nCzRVQw4loU/5uobc7+iyGXxEBPDi8RYkXW3tgl+uIlvgrOOfnAh/Loerd1Iw\r\n5iZiKhNWwYHzG8idpF8Qt5zOOYknoYYB4cICZcNqVpReTG8Zi9Qf9a6pKGFF\r\nvEnJ1l2Ljfo27CvQBdZegYc1KV7Yfgug5M8xcT1J9chZNY4lQ7DECUe0bVCO\r\n4RYmSG6ZBMzpIiRP34gfuBysHZruU0VVHPLsyKX7Tak3EVCvEOFgjLEgvjlb\r\nCs3y8ckei4z2cqNjfEHLMMfZjpgXwp0rjSbIp1KD176KNVDUG4rRdPDlTpp0\r\ntnWxmlmwbBYud4Mj8gPDgunpuSqMKzn7d/mh0mrnRlXmw4DYm35Ug8rBQbiT\r\nH2VNyYbC5VxkyaTOlTd17lrkm09bFhOHkNg=\r\n=64Ug\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","gitHead":"20036b17522cf2715c19f8f1e241893083919ba6","scripts":{"test":"ava","build":"tsc"},"_npmUser":{"name":"joelg","email":"joelg@mit.edu"},"repository":{"url":"git+https://github.com/joeltg/fp16.git","type":"git"},"_npmVersion":"8.15.0","description":"Half-precision 16-bit floating point numbers","directories":{},"_nodeVersion":"18.7.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^4.0.0","typescript":"^4.4.3"},"_npmOperationalInternal":{"tmp":"tmp/fp16_0.2.0_1661630530974_0.6644868034177351","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"fp16","version":"0.3.0","keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","_id":"fp16@0.3.0","maintainers":[{"name":"joelg","email":"joelg@mit.edu"}],"homepage":"https://github.com/joeltg/fp16#readme","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"dist":{"shasum":"86dea6e72f3ed511201a4743ad632f94db757344","tarball":"https://registry.npmjs.org/fp16/-/fp16-0.3.0.tgz","fileCount":13,"integrity":"sha512-Iw6hLaH345EETQGU56NiAcJ173IraDRdJrVy+0fBMPdkZhzKNN/k3eqXFyNmnyx2/jnIzF2nr0mHh5nHrQBMEQ==","signatures":[{"sig":"MEUCIQDylP+m9ilb9WBiIrYpnyfjYMP+R+U2rV/jYla1VAyVOAIgJfZ37fZp1Qmw8We657CQsOJhUGkwgOtB57XxvtOJADc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17351},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","gitHead":"cc0ef13cee6e8447f9070cc6310c9b208b7634ce","scripts":{"dev":"tsc --watch","test":"ava","build":"tsc"},"_npmUser":{"name":"joelg","email":"joelg@mit.edu"},"repository":{"url":"git+https://github.com/joeltg/fp16.git","type":"git"},"_npmVersion":"10.5.1","description":"Half-precision 16-bit floating point numbers","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"ava":"^6.1.3","typescript":"^4.4.3"},"_npmOperationalInternal":{"tmp":"tmp/fp16_0.3.0_1722444653533_0.5480450193000361","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"fp16","version":"1.0.0","type":"module","description":"Half-precision 16-bit floating point numbers","main":"lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"scripts":{"dev":"tsc --build tsconfig.json test/tsconfig.json --watch","build":"tsc --build tsconfig.json test/tsconfig.json","clean":"tsc --build tsconfig.json test/tsconfig.json --clean","test":"ava"},"repository":{"type":"git","url":"git+https://github.com/joeltg/fp16.git"},"keywords":["float16"],"author":{"name":"Joel Gustafson"},"license":"MIT","bugs":{"url":"https://github.com/joeltg/fp16/issues"},"homepage":"https://github.com/joeltg/fp16#readme","devDependencies":{"@ava/typescript":"^5.0.0","ava":"^6.2.0","typescript":"^5.6.0"},"_id":"fp16@1.0.0","gitHead":"92f42f3b6c34fda7ba6d72b89f4e4e61e33003bb","_nodeVersion":"23.7.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-quTRD9VX09Uj0On5faAm67diRFs44OwShZ/fCaZJ+wjuGFJmWvAaumwtJls12vSbYddJVu4/dwyVciLCajYTrg==","shasum":"d9e4f35eb1816a638772c01c824476ec0465a39c","tarball":"https://registry.npmjs.org/fp16/-/fp16-1.0.0.tgz","fileCount":13,"unpackedSize":17539,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDGNWJA0dO+u8YkQTvldON1RgbXQiUOpQLiPJH64YvpUAIgMXDe2qowz4jAjMERwagfkfFflgllMtissvXS1Yvm0xU="}]},"_npmUser":{"name":"joelg","email":"joelgustafson@protonmail.com"},"directories":{},"maintainers":[{"name":"joelg","email":"joelgustafson@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fp16_1.0.0_1741188479449_0.47500662431045493"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-14T16:49:11.750Z","modified":"2025-03-05T15:27:59.796Z","0.1.0":"2021-09-14T16:49:11.906Z","0.1.1":"2021-09-14T17:08:11.197Z","0.1.2":"2021-09-14T17:15:21.923Z","0.1.3":"2021-09-14T21:51:02.280Z","0.1.4":"2021-11-08T01:32:54.836Z","0.2.0":"2022-08-27T20:02:11.143Z","0.3.0":"2024-07-31T16:50:53.755Z","1.0.0":"2025-03-05T15:27:59.629Z"},"bugs":{"url":"https://github.com/joeltg/fp16/issues"},"author":{"name":"Joel Gustafson"},"license":"MIT","homepage":"https://github.com/joeltg/fp16#readme","keywords":["float16"],"repository":{"type":"git","url":"git+https://github.com/joeltg/fp16.git"},"description":"Half-precision 16-bit floating point numbers","maintainers":[{"name":"joelg","email":"joelgustafson@protonmail.com"}],"readme":"# fp16\n\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg)](https://github.com/RichardLitt/standard-readme) [![license](https://img.shields.io/github/license/joeltg/fp16)](https://opensource.org/licenses/MIT) [![NPM version](https://img.shields.io/npm/v/fp16)](https://www.npmjs.com/package/fp16) ![TypeScript types](https://img.shields.io/npm/types/fp16)\n\nHalf-precision 16-bit floating point numbers.\n\n[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) has APIs for getting and setting [float64s](https://en.wikipedia.org/wiki/Double-precision_floating-point_format) and [float32s](https://en.wikipedia.org/wiki/Single-precision_floating-point_format). This library provides the analogous methods for [float16s](https://en.wikipedia.org/wiki/Half-precision_floating-point_format), and utilities for testing how a given float64 value will convert to float32 and float16 values. Conversion implements the IEEE 754 default rounding behavior (\"Round-to-Nearest RoundTiesToEven\").\n\n`NaN` is always encoded as `0x7e00`, which extends the pattern of how browsers serialize `NaN` in 32 bits and is the recommendation [in the CBOR spec](https://www.rfc-editor.org/rfc/rfc8949.html#name-deterministically-encoded-c).\n\nThis library is TypeScript-native, ESM-only, and has zero dependencies. It works in Node, the browser, and Deno.\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Testing](#testing)\n- [Credits](#credits)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Install\n\n```\nnpm i fp16\n```\n\n## Usage\n\n### Set a 16-bit float\n\n```typescript\ndeclare function setFloat16(\n  view: DataView,\n  offset: number,\n  value: number,\n  littleEndian?: boolean,\n): void\n```\n\n### Get a 16-bit float\n\n```typescript\ndeclare function getFloat16(\n  view: DataView,\n  offset: number,\n  littleEndian?: boolean,\n): number\n```\n\n### Precision\n\nIn addition to methods for getting and setting float16s, `fp16` exports two methods for testing how a given `number` value will convert to 32-bit and 16-bit values.\n\n```typescript\nexport const Precision = {\n\tExact: 0,\n\tInexact: 1,\n\tUnderflow: 2,\n\tOverflow: 3,\n} as const\n\nexport type Precision = typeof Precision[keyof typeof Precision]\n\ndeclare function getFloat32Precision(value: number): Precision\ndeclare function getFloat16Precision(value: number): Precision\n```\n\n- `Precision.Exact`: Conversion will not loose precision. The value is guaranteed to round-trip back to the same `number` value. Positive and negative zero, positive and negative infinity, and `NaN` all return `exact`. **Values that can be represented losslessly as a subnormal value in the target format will return `exact`.**\n- `Precision.Overflow`: the exponent of the given value is greater than the maximum exponent of the target size (`127` for float32 or `15` for float16). Conversion is guaranteed to overflow to +/- Infinity.\n- `Precision.Underflow`: the exponent of the given value is less than the minimum exponent _minus the number of fractional bits_ of the target size (`-126 - 23` for float32 or `-14 - 10` for float16). Conversion is guaranteed to underflow to +/- 0 **or** to the smallest signed subnormal value (`+/- 2^-24` for float16 or `+/- 2^-149` for float32).\n- `Precision.Inexact`: the exponent is within the target range, but precision bits will be lost during rounding. The value may round to +/- 0 but will never round to +/- Infinity.\n\nNote that the boundaries for overflow and underflow are not what you might necessarily expect; this is because values with exponents just under the minimum exponent for a format map to subnormal values.\n\nAlso note that `fp16` treats all NaN values as identical, ignoring sign and signalling bits when decoding, and encoding every `NaN` value as `0x7e00`. This means that not all 16-bit values will round-trip through `setFloat16` and `getFloat16`.\n\n## Testing\n\nTests use [AVA](https://github.com/avajs/ava) and live in the [test](./test/) directory.\n\n```\nnpm run test\n```\n\nTests cover decoding all 65536 possible 16-bit values, rounding behaviour, subnormal values, underflows, and overflows. More tests are always welcome.\n\n## Credits\n\n[This PDF](http://fox-toolkit.org/ftp/fasthalffloatconversion.pdf) was extremely helpful as a reference for understanding the float16 format, even though `fp16` doesn't use the table-based aproach it outlines.\n\nThe Golang [github.com/x448/float16](https://github.com/x448/float16) package was used as a reference for implementing rounding. The test suite in [tests/32to16.js](./test/32to16.js) was adapted from its test file [float16_test.go](https://github.com/x448/float16/blob/master/float16_test.go).\n\n## Contributing\n\nI don't expect to add any additional features to this library, or change any of the exported interfaces. If you encounter a bug or would like to add more tests, please open an issue to discuss it!\n\n## License\n\nMIT © 2021 Joel Gustafson\n","readmeFilename":"README.md"}