Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Esteban Lorenzano
yeah :( > On 03 Feb 2015, at 17:02, Chris Cunningham wrote: > > 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, 201

Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Chris Cunningham
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 wrote: > in fact, I wonder why #isFinite is implemented: > >

Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Esteban Lorenzano
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 wrote: > > There is Float infinity and Float negativeInfinity - two infinite classes. > > Can

Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Chris Cunningham
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 wrote: > Hi, > > that… I wonder if > > aFloat isFinite = true > > and > > (aFloat == Flo

[Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Esteban Lorenzano
Hi, that… I wonder if aFloat isFinite = true and (aFloat == Float infinite) = false is a possible combination Esteban