[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug with numeric calculation
From: |
Dr. C. Griewatsch |
Subject: |
Bug with numeric calculation |
Date: |
Thu, 17 Aug 2006 10:10:49 +0200 (CEST) |
Hi,
Linux Debian 3.1
Linux linuxserv 2.6.11.7 #4 SMP Wed Apr 27 18:46:38 CEST 2005 i686 GNU/Linux
gawk --version
GNU Awk 3.1.4
echo 1.0 1.1 | gawk '{print 0.1+$1-$2}'
0
echo 1.1 1.2 | gawk '{print 0.1+$1-$2}'
2.22045e-16
The same error can be reproduced with gawk 3.1.5 on the same machine, or
with gawk 3.1.0 on Solaris 5.8, and with gawk 3.1.4 on Suse 9.3.
Regards,
Carsten
--
Dr. Carsten Griewatsch / Leitung EDV / Institut fuer Geowissenschaften
Christian-Albrechts Universität zu Kiel / Otto-Hahn-Platz 1, D-24118 Kiel
Tel. +49 431 880-3919 Fax +49 431 880-4432
E-Mail address@hidden WWW http://www.ifg.uni-kiel.de/~carsten
- Bug with numeric calculation,
Dr. C. Griewatsch <=