awk question

I have a file that I add up all the same entries in column 1 divide that by 1024 and output the data in column 2. Looks like so

DZ0T,13.8802

I now need to take that number and divide it by a number (let's say 10) and add another column next to it. Like so

DZ0T,13.8802,1.38802

I use this code to do the first part, how do I do the second part

|awk -F, '{if ($2 >= 1){array[$1]+=$2/1024}} END { for (i in array) {print i"," array}}

Thanks

You can perform the division and print inside the END rule:-

END { for (i in array) {print i "," array "," array/10}}

I figured it out

If you do not otherwise use the array, you can simply print per line

awk -F, '($2>=1) { print $0 FS $2/1024 }'

or

awk -F, '($2>=1) { printf "%s,%f\n",$0,$2/1024 }'