← Back to archive

Stdle #19 · math · 2026-06-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 neg_inf = -std.math.inf(f64);
std.debug.print("{}\n", .{std.math.isInf(neg_inf)});
}
Math
4 attempts left

Answer & explanation