string conversion, format functions

HP Wei hp@REDACTED
Wed Apr 23 22:52:45 CEST 2003


I have a string "123" and want to convert it to an integer
or float, and vice versa.

In python, I go to the string module and
there are string.atoi(), string.atof(), and str(number).
So, by habit, I went to string module doc in Erlang
I could not find the counterparts of these functions. Where are they ?

-------------------------
B = 3.

I want to form a string "0003".  
  ** Can io:format generate such a printout ? 
  ** Can it be redirected to a string ?
  ** If not, how do folks in Erlang world do this padding?

thanks,  
hp




More information about the erlang-questions mailing list