nandi/rustnimpublic Fork 0
8354895601e0a0fa3e1962b9ef728d00050ffb97
Commits
Clone
git clone https://git.rickub.com/nandi/rustnim.git
git clone ssh://git@rickub.com/nandi/rustnim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

013-floats.rs · 8 lines · 300 BRust Blame HistoryRaw
Add the differential test runner, and a lowering to measure with it 8ac32af nandithebull 14h ago1// Rust's Display drops a bare `.0`; Debug keeps it. Nim's `$` does neither
2// consistently, so the prelude implements both.
3fn main() {
4 println!("{} {:?}", 1.0f64, 1.0f64);
5 println!("{} {:?}", 1.5f64, 1.5f64);
6 println!("{}", 0.1f64 + 0.2f64);
7 println!("{} {}", -0.5f64, 100.0f64);
8}