Re: Arithmetic error or function setup incorrectly

2017-12-04 Thread Antonio Olivares
On Sunday, December 3, 2017, 9:48:17 PM CST, Jon LaBadie wrote: Antonio, Do you have control over the contents (format) of the data? Here that would be "Soccer.dat". If yes I'd suggest a format change.  Separate the goals with dashes (-) or commas (,) or whatever, just no something

Arithmetic error or function setup incorrectly

2017-12-03 Thread Antonio Olivares
Dear Fedora users, I have a question regarding a set of data and an awk script that performs some actions, it calculates a GF(goals in favor) GA(goals against), and PTS for each game. Suppose the data is as follows: Soccer.dat Team. GF GA Team1 1 2 Team2 1 1.2 Team3 2 4 Team4 3 0 Team5 4 0 Te