cmath-js
TypeScript icon, indicating that this package has built-in type declarations

1.4.4 • Public • Published

cmath-js

Implementation of parts of C's & C++'s numerics libraries in TypeScript/JavaScript.

Floating-point functions

Integer functions

These functions accept either a bigint or an integer number:

Functions for both floats and ints

Mathematical constants

Test coverage

The test coverage is a perfect 100% and enforced by the publishing and pull request verification workflows.

Contributing

Contributions are welcomed! Feel free to make a pull request. Please add your name to contributors in package.json and run npm run build-and-verify before submitting your PR. By making a pull request you agree to license your contribution under the CC0 license unless otherwise specified.

ESLint is used to enforce code quality and consistent formatting (with the help of Prettier). If ESLint complains when you run npm run build-and-verify, you can run npm run lint-fix to apply automatic fixes and and then fix the rest of the errors manually. I recommend configuring your IDE for ESLint and Prettier. If you are using Visual Studio Code, simply installing Microsoft's ESLint extension and the official Prettier extension takes care of that.

Package Sidebar

Install

npm i cmath-js

Weekly Downloads

26

Version

1.4.4

License

MIT

Unpacked Size

38 kB

Total Files

102

Last publish

Collaborators

  • olh