← Back to archive

Stdle #49 · math · 2026-07-25

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 inf = std.math.inf(f32);
std.debug.print("{}\n", .{inf > 1000000.0});
}
Math
4 attempts left

Answer & explanation