[erlang-questions] integer-string conversions.

Peter W. Morreale pmorreale@REDACTED
Sat Apr 9 00:44:46 CEST 2011


I bet this has come up a lot, however I can't find anything on the web
that is appropriate...   (Nor am I seeing it in the erlang doc...)

Need to convert an integer to a string, with a field width and
precision, such that:

  2 --> "02" 

ie: right-justified and padded with a leading zeros, depending upon
field width. 

How do I do this?

THanks,
-PWM




More information about the erlang-questions mailing list