| Crates.io | dragonbox |
| lib.rs | dragonbox |
| version | 0.1.10 |
| created_at | 2021-07-18 00:46:19.504258+00 |
| updated_at | 2025-03-03 23:20:07.046948+00 |
| description | Fast floating point to string conversion |
| homepage | |
| repository | https://github.com/dtolnay/dragonbox |
| max_upload_size | |
| id | 424226 |
| size | 111,019 |
This crate contains a basic port of https://github.com/jk-jeon/dragonbox to Rust for benchmarking purposes.
Please see the upstream repo for an explanation of the approach and comparison to the Ryƫ algorithm.
fn main() {
let mut buffer = dragonbox::Buffer::new();
let printed = buffer.format(1.234);
assert_eq!(printed, "1.234E0");
}
