Bug ... in Erlang

Fredrik Linder fredrik.linder@REDACTED
Tue Jun 17 15:49:30 CEST 2003


Would not the *proper* behaviour be to implement a big-float mechanism, in
the same spirit as for integers?

/Fredrik

> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED]On Behalf Of Serge Aleynikov
> Sent: den 17 juni 2003 15:16
> To: Joe Armstrong
> Cc: erlang-questions@REDACTED
> Subject: Re: Bug ... in Erlang
>
>
> I am not sure about Erlang, but in C (32bit) the highest value in the
> range of the double precision floating point type is 1.700000E+308
>
> I suppose the proper behavior would be to get an illegal floating point
> exception thrown.
>
> 19> 1.799E+308.
> 1.00000e+0
> 20> 1.79E+308.
> 1.79000e+308
>
> Serge
>
> Joe Armstrong wrote:
> >
> >  Try typing the following:
> >
> > 	> 1.0e309.
> >
> >  Is this a bug?
> >
> >  /Joe
> >
> >
>
>
>




More information about the erlang-questions mailing list