[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inconsistency in seq
From: |
Pádraig Brady |
Subject: |
Re: inconsistency in seq |
Date: |
Wed, 12 Dec 2007 13:13:37 +0000 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Vincent Rossetto wrote:
> Hi
>
> I have the coreutils version 5.97.
>
> I wonder why the behaviour of seq is different
> for integer and non-integer INCREMENT.
>
> Examples:
> $ seq 10 10 30
> 10
> 20
> 30
> $ seq 0.1 0.1 0.3
> 0.1
> 0.2
> $
>
> According to the man page, it should be the same result
> namely the first example, which is correct.
The info page for your version should give you
more info about this floating point related issue.
Actually this issue was fixed in the recently released version 6.9.90
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=blob;f=NEWS
coreutils releases tend to be slow about propagating to
distributions for various reasons unfortunately.
Pádraig.