Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
1. Install Package:
npm i math-exact
Add:
// Imports: Dependencies
import { mathExact } from 'math-exact';
mathExact('Add', 1, 2); // 3
mathExact('Add', .1, .2); // .3
mathExact('Add', 1.123, .2); // 1.323
mathExact('Add', .02, 1.123); // 1.143
Subtract:
// Imports: Dependencies
import { mathExact } from 'math-exact';
mathExact('Subtract', 1, 2): // -1
mathExact('Subtract', .1, .2); // -.1
mathExact('Subtract', 1.123, .2); // .923
mathExact('Subtract', .02, 1.123); // -1.103
Multiply:
// Imports: Dependencies
import { mathExact } from 'math-exact';
mathExact('Multiply', 1, 2); // 2
mathExact('Multiply', .1, .2); // .02
mathExact('Multiply', 1.123, .2); // .2246
mathExact('Multiply', .02, 1.123); // .002246
Divide:
// Imports: Dependencies
import { mathExact } from 'math-exact';
mathExact('Divide', 1, 2); // .5
mathExact('Divide', .1, .2); // .5
mathExact('Divide', 1.123, .2); // 5.615
mathExact('Divide', .02, 1.123); // .017809439002671415
Changed
Changed
Changed
Changed
Changed
FAQs
Precision math for JavaScript/TypeScript
The npm package math-exact receives a total of 203 weekly downloads. As such, math-exact popularity was classified as not popular.
We found that math-exact 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.