Write a command-line tool fixed calc that performs fixed-point arithmetic on a column of numbers read from…
Write a command-line tool fixed calc that performs fixed-point arithmetic on a column of numbers read from…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input: stdin contains one decimal number per line (or empty lines). Numbers may have up to 6 decimal places…
The task
**Input:** stdin contains one decimal number per line (or empty lines). Numbers may have up to 6 decimal places and may be negative. The total number of lines is unknown in advance.
Part of ai-and/termgrade-environments.