Help with number field manipulation

I have a comma separated file containing numbers, I would like to read the file and divide each number by 1024 and create an output file.

Input file :

50312.00,3434.05, ,3433.34,124344.00,434343.00, , , 

Output file:

49.13,3.35,3.35,0,12.05,424.16,0,0

Try this,

awk -F"," '{for(i=1;i<=NF;i++){print $i/1024;}}' txt  > txt1 

Regards,
Indu

nawk -F, -v OFS=, '{for(i=1;i<=NF;i++){$i=$i/1024}}1' input.txt > output.txt