![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
two-product
Advanced tools
Readme
Computes the product of two floating point numbers as a 2-term nonoverlapping increasing sequence.
npm install two-product
var twoProduct = require("two-product")
console.log(twoProduct(1 + Math.pow(2, -52), Math.pow(2, 52) + 1))
Output:
[ 2.220446049250313e-16, 4503599627370498 ]
require("two-product")(a, b[, result])
Multiplies a
and b
and returns the product as a non-overlapping sequence. result
is an optional length 2 array that stores the result.
a
is a numberb
is a numberresult
is an optional length 2 array that gets the result of multiplying a
and b
Returns A length 2 array representing the product of a
and b
as an expansion. The first entry is the lower order bits, and the second entry is the upper order bits.
Note This algorithm does not work correctly with denormalized numbers.
JavaScript implementation (c) 2013-2014 Mikola Lysenko. Based on ideas from Jonathan Shewchuk's robust adaptive geometric predicates.
FAQs
Multiplies two floating point numbers together producing a non-overlapping increasing sequence of floats
The npm package two-product receives a total of 60,546 weekly downloads. As such, two-product popularity was classified as popular.
We found that two-product demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.