Crates.io | dragonbox |
lib.rs | dragonbox |
version | 0.1.8 |
source | src |
created_at | 2021-07-18 00:46:19.504258 |
updated_at | 2023-12-21 17:55:18.951086 |
description | Fast floating point to string conversion |
homepage | |
repository | https://github.com/dtolnay/dragonbox |
max_upload_size | |
id | 424226 |
size | 103,490 |
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");
}