[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Numeric Error that is also present in UNIX awk/nawk
From: |
Saxon Robert-QA2183 |
Subject: |
Numeric Error that is also present in UNIX awk/nawk |
Date: |
Mon, 3 Oct 2005 16:26:17 -0400 |
The following generates the wrong number:
* gawk 'BEGIN { print int(16.240*1000); exit }'
The numeric error occurs on Linux, SUN and SGI. For UNIX versions, the
same error occurs for old and new AWK. Versions tested:
* GNU Awk 3.1.4
* Sun OS 5.8 Generic 111111-01 March 2001 [retrieved using "what"
command]
* SGI
Gawk/nawk/oawk all generate the same output. Errors also occurs when
value is "16.220".
Robert A. Saxon
1501 W. Shure Drive, Arlington Heights, IL 60004
847-632-5099 Office, 847-477-7004 Mobile
- Numeric Error that is also present in UNIX awk/nawk,
Saxon Robert-QA2183 <=