package
Perform precise math operations without floating point errors.
npm install precise-mathGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
61.2 kB
Includes dependencies.
Perform precise math operations without floating point errors.
npm install precise-mathconst { add } = require("precise-math")
console.log(0.2 + 0.1 + 0.05)
//=> 0.35000000000000003
console.log(add(0.2, 0.1, 0.05))
//=> 0.35Type: numbers
The numbers to perform the math operation on.