#bignum #string-conversion #numeric

malachite

Arbitrary-precision arithmetic, with efficient algorithms partially derived from GMP, FLINT, and MPFR

21 releases

0.4.22 Feb 3, 2025
0.4.16 Sep 5, 2024
0.4.14 Jun 22, 2024
0.4.5 Feb 12, 2024
0.3.0 Oct 18, 2022

#72 in Math

Download history 11866/week @ 2024-10-22 14021/week @ 2024-10-29 5399/week @ 2024-11-05 37094/week @ 2024-11-12 27492/week @ 2024-11-19 9413/week @ 2024-11-26 26798/week @ 2024-12-03 27851/week @ 2024-12-10 13607/week @ 2024-12-17 2075/week @ 2024-12-24 4516/week @ 2024-12-31 26210/week @ 2025-01-07 19720/week @ 2025-01-14 14718/week @ 2025-01-21 15500/week @ 2025-01-28 15335/week @ 2025-02-04

69,389 downloads per month
Used in 63 crates (11 directly)

LGPL-3.0-only

7MB
134K SLoC

Logo

An arbitrary-precision arithmetic library for Rust.

Parts of Malachite are derived from GMP, FLINT, and MPFR.

The documentation for Malachite is here, and its crate is here.

Floats (arbitrary-precision floating-point numbers) are in development and are currently experimental. They are missing many important functions. However, the floating-point functions that are currently implemented are thoroughly tested and documented, with the exception of string conversion functions. The current floating-point string conversion functions are incomplete and will be changed in the future to match MPFR's behavior.

Malachite is developed by Mikhail Hogrefe. Thanks to b4D8, florian1345, konstin, Rowan Hart, YunWon Jeong, Park Joon-Kyu, Antonio Mamić, OliverNChalk, shekohex, and skycloudd for additional contributions.

https://www.malachite.rs/

Copyright © 2025 Mikhail Hogrefe

Dependencies

~2.3–8.5MB
~62K SLoC