Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2018 17:27:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217149] seq(1) inconsistently omits 'last' when using float increment
Message-ID:  <bug-217149-8-fGVEEtYZJp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217149-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217149-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217149

Yuri Pankov <yuripv@icloud.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuripv@icloud.com

--- Comment #1 from Yuri Pankov <yuripv@icloud.com> ---
Created attachment 189755
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D189755&action=
=3Dedit
Don't accumulate rounding errors

As I was educated on current@, many exact fractions in base-10 aren't exact=
 in
base-2, so using the for() loop accumulates rounding errors.  Work around t=
hat
re-computing current value for every step.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217149-8-fGVEEtYZJp>