Package Version Hex Docs

A Gleam mathematics and statistics library. The library supports both targets: Erlang and JavaScript.

The repository is available on:

The documentation is hosted on:


The library is available on Hex so it can be added to your Gleam project by simply running:

gleam add gleam_stats


To align the Gleam and Javascript implementation of the library, the JavaScript implementation utilizes the decimal.js library internally for computations that require arbitrary precision integers and floating-point values. However, the input and output of the different functions in the JavaScript implementation of the library are still constrained by the precision of the JS Number primitive.


# Run the tests
gleam test

# Build and run docs locally
gleam docs build && python -m http.server