When I run this simple awk program i'm getting confusing results. Why in the 3rd execution awk is always printing 0?
$ gawk '{ printf("%10.6f %10.6f %10.6f\n",$1,$2,$1-$2)}'
3,6 3,6
3,600000 3,600000 0,000000
3,5 3,0
3,500000 3,000000 0,500000
0,6 0,3
0,000000 0,000000 0,000000
$ gawk --version
GNU Awk 3.1.3
Thank you very much!
Miguel
$ gawk '{ printf("%10.6f %10.6f %10.6f\n",$1,$2,$1-$2)}'
3,6 3,6
3,600000 3,600000 0,000000
3,5 3,0
3,500000 3,000000 0,500000
0,6 0,3
0,000000 0,000000 0,000000
$ gawk --version
GNU Awk 3.1.3
Thank you very much!
Miguel