Create a command-line tool /app/fpcalc that performs exact fixed-point decimal arithmetic. The tool reads a…
Create a command-line tool /app/fpcalc that performs exact fixed-point decimal arithmetic. The tool reads a…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format (stdin): A single line containing three…
The task
**Input format (stdin):** A single line containing three space-separated fields: `OPERAND1 OPERATOR OPERAND2` - `OPERAND1` and `OPERAND2` are decimal numbers matching the regex `^-?[0-9]+(\.[0-9]+)?$` - `OPERATOR` is one of: `+` `-` `*` `/` `scale` `round`