Date: Mon, 15 Jan 2018 18:54:54 +0300 From: Yuri Pankov <yuripv@icloud.com> To: David Chisnall <theraven@FreeBSD.org>, Hans Petter Selasky <hps@selasky.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: inconsistent for() and while() behavior when using floating point Message-ID: <0b310384-819d-292c-f407-9ab73f6c4ec9@icloud.com> In-Reply-To: <3E349DFD-046F-46B2-A80B-5C19755CC3D4@FreeBSD.org> References: <6c423dbf-cd85-3c93-41e4-3362c06dfbb7@icloud.com> <379d470c-480b-96d7-819b-873cc3100fc7@selasky.org> <d1681463-942f-c291-55bf-9be394e30d0f@selasky.org> <3E349DFD-046F-46B2-A80B-5C19755CC3D4@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 15, 2018 at 02:54:59PM +0000, David Chisnall: > On 15 Jan 2018, at 14:49, Hans Petter Selasky <hps@selasky.org> wrote: >> >> The "seq" utility should use two 64-bit integers to represent the 10-base decimal number instead of float/double. And then you need to step this pair of integers. Thanks for the hint! > As the saying goes: > >> Sometimes, people think 'I have a problem and I will solve it with floating point values' and then they have 1.99999999 problems. Well, seq(1) is about floating numbers, so at least initially using them internally would seem correct, though reading your replies I now understand it's not :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0b310384-819d-292c-f407-9ab73f6c4ec9>