ec_cnv
Functions
to_integer(X::string() | binary() | integer() | float()) -> integer()
Automatic conversion of a term into integer type. The conversion will round a float value if nonstrict is specified otherwise badarg
to_integer(X::string() | binary() | integer() | float(), S::strict | nonstrict) -> integer()
to_float(X::string() | binary() | integer() | float()) -> float()
Automatic conversion of a term into float type. badarg if strict is defined and an integer value is passed.
to_float(X::string() | binary() | integer() | float(), S::strict | nonstrict) -> float()
to_number(X::binary() | string() | number()) -> number()
Automatic conversion of a term into number type.
to_list(X::atom() | list() | binary() | integer() | float()) -> list()
Automatic conversion of a term into Erlang list
to_binary(X::atom() | string() | binary() | integer() | float()) -> binary()
Known limitations: Converting [256 | _], lists with integers > 255
to_boolean(X1::binary() | string() | atom()) -> boolean()
is_true(X1::binary() | string() | atom()) -> boolean()
is_false(X1::binary() | string() | atom()) -> boolean()
to_atom(X::atom() | list() | binary() | integer() | float()) -> atom()
Automation conversion a term to an existing atom. badarg is returned if the atom doesn't exist. the safer version, won't let you leak atoms