[Bug 217149] seq(1) inconsistently omits 'last' when using float increment

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 16 19:08:50 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217149

            Bug ID: 217149
           Summary: seq(1) inconsistently omits 'last' when using float
                    increment
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: mcdutchie at hotmail.com

With a 'first' parameter up to 1.6, seq(1) will not print the '2':

$ seq 1.6 .05 2
1.6
1.65
1.7
1.75
1.8
1.85
1.9
1.95

but, starting from 1.65, it will:

$ seq 1.65 .05 2
1.65
1.7
1.75
1.8
1.85
1.9
1.95
2

GNU 'seq' always prints the 2.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list