Sun Sep 2 16:54:24 CEST 2007
Anthony Shipman wrote:
> 13> string:to_float("0").
> 14> string:to_float("0.0").
> That's a bit rough!
From the erlang docs for to_float(String):
*Argument |String| is expected to start with a valid
text represented float (the digits being ASCII values). Remaining
characters in the string after the float are returned in |Rest|.
* It would seem that "0" is not recognized as a float and thats
probably for some management issues in the VM :).
More information about the erlang-questions