@vaporsproject/bignumber

BigNumber library used in vapors.js.

Usage no npm install needed!

<script type="module">
  import vaporsprojectBignumber from 'https://cdn.skypack.dev/@vaporsproject/bignumber';
</script>

README

Big Numbers

This sub-module is part of the vapors project.

It is responsible for handling arbitrarily large numbers and mathematic operations.

For more information, see the documentation for Big Numbers and Fixed-Point Numbers.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {

    BigNumber,

    FixedFormat,
    FixedNumber,

    formatFixed,

    parseFixed

    // Types

    BigNumberish

} = require("@vaporsproject/bignumber");

License

MIT License