Skip to content

dtolnay/zmij

Repository files navigation

Żmij

github crates.io docs.rs build status

Pure Rust implementation of Żmij, an algorithm to quickly convert floating point numbers to decimal strings.

This Rust implementation is a line-by-line port of Victor Zverovich's implementation in C++, https://github.com/vitaut/zmij.

Example

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

Performance (lower is better)

performance


License

MIT license.

About

Fast floating point to string conversion

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks