HF RL Explorer

Create a command-line tool /app/fixcalc that performs arithmetic operations on fixed-point decimal numbers…

Create a command-line tool /app/fixcalc that performs arithmetic operations on fixed-point decimal numbers…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin or file specified by -f flag): <precision <operation <operand1 <operand2 - precision …

The task

**Input format (stdin or file specified by `-f` flag):** ``` <precision> <operation> <operand1> <operand2> ``` - `precision`: integer 0-20, specifying decimal places to retain after each operation - `operation`: one of `ADD`, `SUB`, `MUL`, `DIV`, `POW` - `operand1`, `operand2`: decimal numbers as strings (may include…

Part of ai-and/termgrade-environments.