← Back to archive

Stdle #26 · math · 2026-07-02

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

Answer & explanation