bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] SEQ BUG


From: Pádraig Brady
Subject: Re: [PATCH] SEQ BUG
Date: Fri, 22 Jun 2007 17:27:00 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061116)

Paul Eggert wrote:
> +       /* If we go one past the end, but that number prints the
> +          same way "last" does, and prints differently from the
> +          previous number, then print "last".  This avoids problems
> +          with rounding.  For example, with the x86 it causes "seq
> +          0 0.000001 0.000003" to print 0.000003 instead of
> +          stopping at 0.000002.  */


I haven't time to look at this now,
but will soon.

A couple of points came to mind.

Is it OK to look at just 1 value "after" last?

Aren't you susceptible to whatever rounding
printf does internally?

My approach was to pull as much info from the
user supplied _strings_ which are infinite precision.

cheers,
Pádraig.




reply via email to

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