Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. snogales

    working with floating points in AWK

    Hi! I am trying to make a program, for which I need high precision. My problem is that I do not understand how AWK is working, I mean: echo 1.00001E-6 | awk -v FS=" " -v D=0 'D=D+$1 {printf("%.12g\n",D)}' 1.00001e-06 (I obtain this result from %.06g to %.17g) but: echo 1.00001E-6 | awk -v...

Part and Inventory Search

Back
Top