HF RL Explorer

Goal: Implement a command-line tool /root/fixcalc that performs fixed-point arithmetic operations on decimal…

Goal: Implement a command-line tool /root/fixcalc that performs fixed-point arithmetic operations on decimal…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - The program reads one line from stdin, writes exactly one line to stdout, and writes…

The task

Exact I/O contract: - The program reads one line from stdin, writes exactly one line to stdout, and writes nothing to stderr on success. - Input format: `OPERATION PRECISION OPERAND1 [OPERAND2]` - OPERATION: one of `add`, `sub`, `mul`, `div`, `round`, `format` - PRECISION: a positive integer (number of decimal places…

Part of ai-and/termgrade-environments.