https://github.com/cmpute/dashu
A library set of arbitrary precision numbers implemented in Rust.
https://github.com/cmpute/dashu
arbitrary-precision bigfloat bigint bignum-library multiple-precision rust
Last synced: about 2 months ago
JSON representation
A library set of arbitrary precision numbers implemented in Rust.
- Host: GitHub
- URL: https://github.com/cmpute/dashu
- Owner: cmpute
- License: apache-2.0
- Created: 2022-06-29T06:48:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-11-08T04:13:15.000Z (7 months ago)
- Last Synced: 2025-12-13T23:38:28.123Z (5 months ago)
- Topics: arbitrary-precision, bigfloat, bigint, bignum-library, multiple-precision, rust
- Language: Rust
- Homepage:
- Size: 1.54 MB
- Stars: 96
- Watchers: 5
- Forks: 14
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# dashu
[](https://crates.io/crates/dashu)
[](https://docs.rs/dashu)
[](https://github.com/cmpute/dashu/actions)
[](#dashu)
[](#license)
A library set of arbitrary precision numbers (aka. big numbers) implemented in Rust. It's intended to be a Rust native alternative to GNU GMP + MPFR (+ MPC in future). It features:
- Pure rust, full `no_std` support.
- Focus on ergonomics & readability, and then efficiency.
- Optimized speed and memory usage.
- Current MSRV is 1.61.
## Sub-crates
- [`dashu-base`](./base): Common trait definitions
- [`dashu-int`](./integer): Arbitrary precision integers
- [`dashu-float`](./float): Arbitrary precision floating point numbers
- [`dashu-ratio`](./rational): Arbitrary precision rational numbers
- [`dashu-macros`](./macros): Macros for creating big numbers
`dashu` is a meta crate that re-exports all the types from these sub-crates. Please see the README.md in each subdirectory for crate-specific introduction.
## License
Licensed under either of
* Apache License, Version 2.0
([LICENSE-APACHE](../LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
* MIT license
([LICENSE-MIT](../LICENSE-MIT) or https://opensource.org/licenses/MIT)
at your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.