Elixir - ExPrintf Trial Page

Example page to convert the printf format into Erlang's :io.format one.

Inputs

Format for printf (ex. %d -> ~w)

Results

printf:io_lib
2000.02000.0
20002000
invalid format -
asdfasdf
%02d -> ~5~2..0B -> ~~5
%02d~2..0B
invalid format -
Hello from Sweden!Hello from Sweden!
%i~w
invalid format - test %u
invalid format - %u
invalid format -
invalid format -
output: %ioutput: ~w
HelloHello
invalid format -
hello %shello ~s
%s~s
Fork me on GitHub