HF RL Explorer

Create a command-line tool /usr/local/bin/fixcalc that performs arithmetic on fixed-point decimal numbers…

Create a command-line tool /usr/local/bin/fixcalc that performs arithmetic on fixed-point decimal numbers…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool reads from stdin, one operation per line. - Each line has format…

The task

**Input contract:** - The tool reads from stdin, one operation per line. - Each line has format: `OPERAND1,OPERAND2,OPERATION,SCALE,ROUNDING_MODE` - Empty lines are ignored. - Lines starting with `#` are comments and ignored. - Whitespace around fields is NOT trimmed (exact match only).

Part of ai-and/termgrade-environments.