-module(s_to_i). -export([start/0]). start() -> X = list_to_integer("234"), io:format("list_to_integer:~p~n",[X]), Y = list_to_integer("-100"), io:format("list_to_integer:~p~n",[Y]).出力:
10> c(s_to_i). {ok,s_to_i} 11> s_to_i:start(). list_to_integer:234 list_to_integer:-100 ok