@velocitycareerlabs/math

1.21.1 • Public • Published

Introduction

This package is meant to be a centralized place for all math functions to be exposed. Wherever number overflow or floating point errors is a concern, these functions should be used.

To use the functions, the numbers need to be converted to BigNumbers, using the exposed toBigNumber and fromBigNumber functions.

Once the numbers are converted to BigNumbers, then functions are exposed to perform operations on those BigNumbers.

For example:

  • addBigNumbers(m,n)
  • subtractBigNumbers(m,n)
  • multiplyBigNumbers(m,n)
  • divideBigNumbers(m,n)

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @velocitycareerlabs/math

Weekly Downloads

1,028

Version

1.21.1

License

Apache-2.0

Unpacked Size

16.5 kB

Total Files

7

Last publish

Collaborators

  • velocitycareerlabs