|
From: | Hermann Peifer |
Subject: | [bug-gawk] pretty-print rounds to "%.6g" |
Date: | Thu, 3 Sep 2015 18:44:57 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
Hi,I just came across the below rounding issue in pretty-printed code. Not sure if this is a feature or rather a (small) bug.
Hermann$ awk -o/dev/stdout 'BEGIN{ for(i=1420066800; i<=1451602800; i+=3600) print i}'
BEGIN { for (i = 1.42007e+09; i <= 1.4516e+09; i += 3600) { print i } }
[Prev in Thread] | Current Thread | [Next in Thread] |