#integer-arithmetic #utilities #fork #128-bit #helpful #psy-lend

psy-math

A fork of jet-proto-math. Helpful math utilities, used by PsyLend.

3 stable releases

1.0.2 Aug 2, 2023
1.0.1 Jul 27, 2023
1.0.0 Dec 9, 2022

#1460 in Math

47 downloads per month
Used in psylend-cpi

AGPL-3.0-or-later

42KB
946 lines

A fork of jet-proto-math. Helpful math utilities, used by PsyLend, and other PsyFi products.

Provides 192-bit and 128-bit integer libraries for dealing with values where decimal precision is needed without the use of floats.

To run unit tests: cargo test --release Note that release flag is important as we want to test production behavior where certain overflow checks in non-checked math is disabled.

Dependencies

~0.6–1.1MB
~24K SLoC