[erlang-questions] io:format printing integers prefixed with zero(0)

jm <>
Tue May 6 07:21:52 CEST 2008


Michael McDaniel wrote:

> 
> ()40> io:fwrite("~3.3.0w ", [1]).
> 001 ok
> ()41> io:fwrite("~3.3.0w ", [10]).
> 010 ok
> ()42> io:fwrite("~3.3.0w ", [100]).
> 100 ok
> ()43> 
> 
> 
>  see io docs; file:///usr/local/lib/erlang/lib/stdlib-1.15/doc/html/io.html
>  on my system

Thanks this is what I was after.

Jeff.



More information about the erlang-questions mailing list