title: Awk is converting 'nan' to zeros
body: <p>I am attempting to preserve the 'nan's in an array of geophysical data.  I am using the following code as part of a linux string:</p>
  
  <pre><code>awk 'NR&gt;50 {printf "(%d, %d, %d) %f %f %f %F\n",$1,$2,$3*10000,$4,$5,$7,$6}'&lt;$PST 
  </code></pre>
  
  <p>Why are the nan's getting converted to zeros?  How can I preserve the nan's in the original data?  I was told that it might have something to do with the lower-case letters of nan, as opposed to NAN or NaN?</p>