From: "José Francisco Calvo Moreno" Date: 2011-11-24T22:39:14+09:00 Subject: [ruby-core:41288] Re: Proposal to add new methods: positive? negative? natural? --0015175df2b65a621904b27b29e5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Even if IEEE 754 uses two different 0.0 (positive and negative) I think that .positive? and .negative? methods should return false. this should not be confused with the internal aspects of Ruby and the use of IEEE 754 (In my own opinion). 2011/11/16 Haase, Konstantin > I think you would need to different 0.0s. > > Konstantin > > On Nov 16, 2011, at 12:30 , Jos=E9 Francisco Calvo Moreno wrote: > > > Do you suggest the following? > > > > 0.0.positive? =3D> true > > 0.0.negative? =3D> true > > > > 2011/11/15 NARUSE, Yui > > On IEEE 754 Floating Point Numbers, there are positive 0.0 and negative > 0.0. > > > > -- > > NARUSE, Yui > > > > > > > --0015175df2b65a621904b27b29e5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Even if IEEE 754 uses two different 0.0 (positive and negative) I think tha= t .positive? and .negative? methods should return false. this should not be= confused with the internal aspects of Ruby and the use of IEEE 754 (In my = own opinion).

2011/11/16 Haase, Konstantin <Konst= antin.Haase@student.hpi.uni-potsdam.de>
I think you would need to different 0.0s.

Konstantin

On Nov 16, 2011, at 12:30 , Jos=E9 Francisco Calvo Moreno wrote:

> Do you suggest the following?
>
> 0.0.positive? =3D> true
> 0.0.negative? =3D> true
>
> 2011/11/15 NARUSE, Yui <naruse= @airemix.jp>
> On IEEE 754 Floating Point Numbers, there are positive 0.0 and negativ= e 0.0.
>
> --
> NARUSE, Yui =A0<naruse@airemix= .jp>
>
>



--0015175df2b65a621904b27b29e5--