← Back to archive

Stdle #32 · math · 2026-07-08

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 = std.math.inf(f64);
std.debug.print("{}\n", .{std.math.isInf(x)});
std.debug.print("{}\n", .{x > 1000000});
}
Math
2 lines
4 attempts left

Answer & explanation