Stdle #165 · math · 2026-11-18
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 = @as(f64, 2.5); std.debug.print("{d}\n", .{@ceil(x)}); std.debug.print("{d}\n", .{@floor(x)});}Math