{"id":"zero-special-cased-in-hex-conversion","text":"`to_hex` special-cases zero with an early return because the digit-extraction loop requires `num > 0` to execute; without the guard, zero input produces an empty string.","truth_value":"IN","source":"entries/2026/06/06/convert-a-number-to-hexadecimal-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"zero-special-cased-in-hex-conversion","truth_value":"IN","reason":"premise"}]}}