@catnap/math.js

1.3.0 • Public • Published

@catnap/math.js

This is a extension of Math object.
It inherits all attributes of Math object.
Math.js exists to enrich the functions of native Math objects,
And reduce the extra workload in actual development.

How to use it

Install

npm install --save @catnap/math.js

In html

<script src="./math.js"></script>

In javascript

import math from '@catnap/math.js'

What can it do?

You can view its functions through this demo page.

Math.js makes the methods of native Math objects more flexible.

Methods like Math.ceil, Math.floor, Math.round, were originally reserved for integers only. But math.js allows them to keep decimal points.

math.js also provides some methods that do not exist in native Math objects. For example, finding the sum of arrays, or find the average value of a set of data.

The original intention of math.js is to maintain compactness, ensure the integrity of Math object methods, and expand the functions of Math object methods to achieve compatibility of methods.

If you think math. js can be better, please do what little one can to help.

Readme

Keywords

Package Sidebar

Install

npm i @catnap/math.js

Weekly Downloads

11

Version

1.3.0

License

MIT

Unpacked Size

31 kB

Total Files

6

Last publish

Collaborators

  • kiccer