Ah, there is also NaN (not a number).

So, float can be:
NegativeInfinity
a Finite Float
Infinity (;positive by elimination)
NaN

Oh, and NegativeZero as well.

floats are weird.

-cbc

On Tue, Feb 3, 2015 at 7:51 AM, Esteban Lorenzano <esteba...@gmail.com>
wrote:

> in fact, I wonder why #isFinite is implemented:
>
> ^(self - self) = 0.0
>
> and not just:
>
> ^self isInfinite not
>
> which includes the negativeInfinity…
>
> Esteban
>
>
> On 03 Feb 2015, at 16:46, Chris Cunningham <cunningham...@gmail.com>
> wrote:
>
> There is Float infinity and Float negativeInfinity - two infinite classes.
>
> Can I assume your first test really wanted to be:
>
> aFloat isFinite = false
> ?
>
> cbc
>
> On Tue, Feb 3, 2015 at 7:38 AM, Esteban Lorenzano <esteba...@gmail.com>
> wrote:
>
>> Hi,
>>
>> that… I wonder if
>>
>> aFloat isFinite = true
>>
>> and
>>
>> (aFloat == Float infinite) = false
>>
>> is a possible combination
>>
>> Esteban
>>
>
>
>

Reply via email to