List

to_integer/2

to_integer(charlist, base)

Returns an integer whose text representation is charlist in base base.

The base needs to be between 2 and 36.