✓
Passing This code compiles and runs correctly.
Code
// Test: :f format specifier for floats in print.ln and print.blk
~import std/io
const pi: f64 = 3.14159;
const mass: f64 = 2.5;
const whole: f64 = 42.0;
~std/io:print.ln("pi={{ pi:f }}")
~std/io:print.ln("mass={{ mass:f }}")
~std/io:print.blk {
whole={{ whole:f }}
}
Actual
pi=3.14159
mass=2.5
whole=42
Expected output
pi=3.14159
mass=2.5
whole=42
Flows
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "pi={{ pi:f }}")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "mass={{ mass:f }}")
flow ~print.blk click a branch to expand · @labels scroll to their anchor
print.blk (source: whole={{ whole:f }})
Test Configuration
MUST_RUN