dragonbox_ecma 0.0.3

Fast floating point to string conversion conforming to ECMAScript specification
Documentation
dragonbox_ecma-0.0.3 has been yanked.

Dragonbox ECMA

Dragonbox ECMA is a fork of the Dragonbox crate adjusted to comply with the ECMAScript number-to-string algorithm.

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.

Example

fn main() {
    let mut buffer = dragonbox_ecma::Buffer::new();
    let printed = buffer.format(1.234);
    assert_eq!(printed, "1.234");
}

Performance (lower is better)

performance

License