Hi.
I have a large XYZ data file. Columns X and Y contain x-positions and y-positions - both are in
metres. Column Z holds data values.
I have to pass this data file in to a code - but firstly the x,y positions have to be converted to
kilometres.
My problem is that awk rounds the values upon multiplication by 0.001 - leading to a loss of data accuracy:
Code:
awk -v OFS="\t" '{print $1*0.001, $2*0.001, $3}' datafile
So for example x position 123456 metres is converted to 123.5 metres or 123.46 metres say.....Is there any switch to suppress this rounding in awk?
Thanks.