Bug ... in Erlang

Serge Aleynikov serge@REDACTED
Tue Jun 17 15:16:29 CEST 2003


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