HF RL Explorer

Create a command-line tool fpcalc that reads a sequence of fixed-point operations from stdin and writes…

Create a command-line tool fpcalc that reads a sequence of fixed-point operations from stdin and writes…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - First line: PRECISION=<N where N is an integer between 1 and 18 inclusive, setting the…

The task

**Input format (stdin):** - First line: `PRECISION=<N>` where N is an integer between 1 and 18 inclusive, setting the number of decimal digits after the decimal point. - Subsequent lines: one operation per line, format: `OPERAND_A OPERATOR OPERAND_B` separated by single spaces. - Operands are decimal strings…

Part of ai-and/termgrade-environments.