|
From: | Steve Simmons |
Subject: | Re: Numeric Error that is also present in UNIX awk/nawk |
Date: | Thu, 06 Oct 2005 11:59:15 GMT |
User-agent: | slrn/0.9.8.0 (Linux) |
Saxon <address@hidden> wrote on 10/03/05 at 20:26: > The following generates the wrong number: > * gawk 'BEGIN { print int(16.240*1000); exit }' 'int' truncates rather than round. And floating point arithmetic is always a bit dicey.
[Prev in Thread] | Current Thread | [Next in Thread] |