Arbitrary Floating Point Numbers

I'm translating a Crystal program to Rust.

It's using BigFloats to represent floating point numbers to arbitrary precision|digits.

I looked thru the The Book, and the std::library seems to only provide f32|f64 numbers.

What is the best (most used) crate to provide this feature?

For floats I'm only aware of rug
https://crates.io/crates/rug

Thanks. I'll look at it.

GitHub - cmpute/dashu: A library set of arbitrary precision numbers implemented in Rust. is a pure Rust library, but I haven't used it myself.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.