Stdle #72 · formatting · 2026-08-17
What does this Zig snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const std = @import("std");pub fn main() void { const x: f32 = 3.14; std.debug.print("{d:.2}\n", .{x}); std.debug.print("{e:.3}\n", .{x});}Formatting