bug-coreutils
[Top][All Lists]
Advanced

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

Re: bug in seq command?


From: Paul Eggert
Subject: Re: bug in seq command?
Date: Fri, 21 Jan 2005 22:15:00 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

"Luis A. Florit" <address@hidden> writes:

> the output of the command:  seq -w 1 0.2 4
> is the sequence
>
>       1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8
>
> Why there is no 4.0 in the last sequence?

Floating point roundoff error.  It's documented in the manual.

If you can submit a fix, please do!  It would improve seq.
(Warning: it won't be trivial.)




reply via email to

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