サンプル:
-module(fread_test).
-export([start/0]).
start() ->
io_lib:fread("~16u", "100"), % {ok,[256],[]}
% 256 = 16^2
io_lib:fread("~2u", "100abc"), % {ok,[4],"abc"}
% 4 = 2^2
io_lib:fread("~36u", "100%%%10"). % {ok,[1296],"%%%10"}