← Back to archive

Stdle #78 · math · 2026-08-23

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: f64 = 1.5;
std.debug.print("{d}\n", .{@round(x)});
}
Math
4 attempts left

Answer & explanation