floating point syntax

Anthony Shipman als@REDACTED
Thu Apr 15 16:21:01 CEST 2010


The reference manual says "There are two types of numeric literals, integers 
and floats. Besides the conventional notation,..."

But what is the "conventional notation" exactly? I find that this fails:
19> io_lib:fread("~f", "1e+2").
{error,{fread,float}}

Also 
1.e+2 fails
1     fails
1.    fails
1.0   succeeds
.1    fails
0.1   succeeds
1.0e+2 succeeds

Is it supposed to be like that or is there a bug?

-- 
Anthony Shipman                    Mamas don't let your babies 
als@REDACTED                   grow up to be outsourced.


More information about the erlang-questions mailing list