Back to Fuels Ts

`@fuel-ts/math`

packages/math/README.md

0.103.01.4 KB
Original Source

@fuel-ts/math

@fuel-ts/math is a sub-module for interacting with Fuel.

This module contains helpful math utilities to work with decimal, hex, Uint8Array.

Math is based in bn.js library, which helps us to do all kinds of calculations safely, doesn't matter the size of the number.

Table of contents

Documentation

<!-- TODO: Replace this link with specific docs for this package if and when we re-introduce a API reference section to our docs -->

See Fuels-ts Documentation

Usage

Installation

sh
pnpm add @fuel-ts/math
# or
npm add @fuel-ts/math

Full SDK Installation

Alternatively, we recommend you install the complete SDK using the umbrella package:

sh
pnpm add fuels
# or
npm add fuels

Contributing

In order to contribute to @fuel-ts/math, please see the main fuels-ts monorepo.

Changelog

The @fuel-ts/math changelog can be found at CHANGELOG.

License

The primary license for @fuel-ts/math is Apache 2.0, see LICENSE.