cargo-play/fixtures/dtoa.rs
2022-03-03 20:59:28 -08:00

10 lines
251 B
Rust

//# rand = "0.5.0"
//# dtoa = { git = "https://github.com/dtolnay/dtoa.git" }
fn main() -> std::io::Result<()> {
let mut buffer = dtoa::Buffer::new();
let printed = buffer.format(2.71828f64);
assert_eq!(printed, "2.71828");
Ok(())
}