| Crates.io | precise |
| lib.rs | precise |
| version | 0.1.10 |
| created_at | 2019-04-21 21:01:10.11701+00 |
| updated_at | 2025-03-03 23:49:53.584283+00 |
| description | Full precision decimal representation of f64 |
| homepage | |
| repository | https://github.com/dtolnay/precise |
| max_upload_size | |
| id | 129369 |
| size | 25,982 |
This crate computes the decimal representation of the single rational number whose value is mathematically equal to a given float.
Note that this is almost never an appropriate way to print user-facing values. For that, use the ryu crate instead.
[dependencies]
precise = "0.1"
fn main() {
// 0.1000000000000000055511151231257827021181583404541015625
println!("{}", precise::to_string(0.1));
}