Package: gawk Version: 1:5.1.0-1 Severity: normal X-Debbugs-Cc: none, Francesco Potortì <poto...@isti.cnr.it>
Dear Maintainer, I observe this: $ echo 8.746 | gawk '{$1+='463405.85';print $0}' 463415 This one round the result to six significant digits, as teh default output format is "%.6g". To change this for 'print' , one should change OFMT, like this: $ echo 8.746 | gawk 'BEGIN{OFMT="%.12g"}{$1+='463405.85';print $0}' 463415 But this has no effect. This is a bug. TO get the right effect, one has to change CONVFMT, like this: $ echo 8.746 | gawk 'BEGIN{CONVFMT="%.12g"}{$1+='463405.85';print $0}' 463414.596 -- Francesco Potortì (ricercatore) Voice: +39.050.621.3058 ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Skype: wnlabisti (gate 20, 1st floor, room C71) Web: http://fly.isti.cnr.it -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (990, 'testing'), (101, 'unstable') merged-usr: no Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.15.0-3-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gawk depends on: ii libc6 2.34-4 ii libgmp10 2:6.2.1+dfsg1-1 ii libmpfr6 4.1.0-3 ii libreadline8 8.1.2-1.2 ii libsigsegv2 2.14-1 gawk recommends no packages. Versions of packages gawk suggests: ii gawk-doc 5.1.0-1 -- no debconf information