091 print float format

✓ 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 }}
}
input.kz

Expected

pi=3.14159
mass=2.5
whole=42

Actual

pi=3.14159
mass=2.5
whole=42

Test Configuration

MUST_RUN