← Back to archive

Stdle #180 · math · 2026-12-03

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

Answer & explanation