[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange problems with data-tests.el
From: |
Pip Cet |
Subject: |
Re: Strange problems with data-tests.el |
Date: |
Mon, 13 Aug 2018 10:06:12 +0000 |
On Sun, Aug 12, 2018 at 6:38 PM Eli Zaretskii <address@hidden> wrote:
> (< 0.5 most-positive-fixnum (+ 1.0 most-positive-fixnum))
I think that test is a bit misleading, as (< most-positive-fixnum (+
-128.0 most-positive-fixnum)) also returns true. It's not the addition
that makes the RHS greater than the LHS, it's the rounding that
happens when it's converted to a float. (This is probably obvious to
most people, but it surprised me).
Re: Strange problems with data-tests.el,
Pip Cet <=