On 2010-06-25, Lee Hachadoorian <lee(dot)hachadoorian(at)gmail(dot)com> wrote:
>
>
> On 06/25/2010 07:00 PM, Scott Marlowe wrote:
>> That all floating point representations are approximate?
>>
> But if it's error due to approximation, shouldn't the result be random?
> I tried this for a handful of larger numbers, and it appears to
> consistently round to the even number. Wouldn't that have to be
> intentionally programmed that way?
Yes it is, an enginneer at intel made that decision in the 70s when
the 8087 coprocessor was developed.
If you're not running on x86-like hardware the round operation may
do something different.