// Rust's Display drops a bare `.0`; Debug keeps it. Nim's `$` does neither // consistently, so the prelude implements both. fn main() { println!("{} {:?}", 1.0f64, 1.0f64); println!("{} {:?}", 1.5f64, 1.5f64); println!("{}", 0.1f64 + 0.2f64); println!("{} {}", -0.5f64, 100.0f64); }