hi all, i have the following problem using awk in a script
i want to read the values from a column with real numbers and calculate the mean.the problem is that when i use a statement such as this
num = $4
i cant find a way to convert the variable from string to floating point to perform any operations.i tried the following
sum = num + 0.0
but sum is equal to 0 after this statement, num is not treated as floating point number but as string
any help would be appreciated
edit : i am using awk 3.1.4 on Suse 9.2