bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gawk round-up 0.5 bug?


From: Jeff Chua
Subject: Re: gawk round-up 0.5 bug?
Date: Thu, 19 Jun 2008 03:16:55 +0800

On Wed, Jun 18, 2008 at 4:26 PM, Andreas Schwab <address@hidden> wrote:
>> I would think 0.5 should be rounded to 1.
> Since 0.5 is exactly half-way between 0 and 1 it is rounded to the
> nearest even number.  This is the default rounding mode for IEEE
> floating point systems.

Thanks for the pointer. All the while, I've been just rounding up and
didn't know that there's the IEEE even-rounding method.

Jeff.




reply via email to

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