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=217149 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=189755&action=edit 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 that re-computing current value for every step. -- 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>
