[Bug 217149] seq(1) inconsistently omits 'last' when using float increment
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jan 15 17:27:52 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217149
Yuri Pankov <yuripv at icloud.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yuripv at icloud.com
--- Comment #1 from Yuri Pankov <yuripv at 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.
More information about the freebsd-bugs
mailing list