[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A BUG of 64-bit integer addition

From: Jürgen Kahrs
Subject: Re: A BUG of 64-bit integer addition
Date: Fri, 18 Apr 2008 22:34:46 +0200
User-agent: Thunderbird (X11/20080226)

Steffen Schuler schrieb:

gawk uses internally the C-type double also for integer calculation with a
mantissa of 53 bit length.
(AMD Athlon, Linux, gcc 4.2.3, gawk-3.1.6a)
The result of your addition would need 54 bit.

As long as gawk uses the C-type double you have to live with this error.

This is not an error, but a feature.
As far as I know, it is intentional that gawk uses a portable data type that produces the same result
on every machine.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]