Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2018 14:54:59 +0000
From:      David Chisnall <theraven@FreeBSD.org>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        Yuri Pankov <yuripv@icloud.com>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: inconsistent for() and while() behavior when using floating point
Message-ID:  <3E349DFD-046F-46B2-A80B-5C19755CC3D4@FreeBSD.org>
In-Reply-To: <d1681463-942f-c291-55bf-9be394e30d0f@selasky.org>
References:  <6c423dbf-cd85-3c93-41e4-3362c06dfbb7@icloud.com> <379d470c-480b-96d7-819b-873cc3100fc7@selasky.org> <d1681463-942f-c291-55bf-9be394e30d0f@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15 Jan 2018, at 14:49, Hans Petter Selasky <hps@selasky.org> wrote:
>=20
> 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.

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.


David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E349DFD-046F-46B2-A80B-5C19755CC3D4>