List.to_integer

You're seeing just the function to_integer, go back to List module for more information.

Specs

to_integer(charlist()) :: integer()

Returns an integer whose text representation is charlist.

Inlined by the compiler.

Examples

iex> List.to_integer('123')
123
Link to this function

to_integer(charlist, base)

View Source

Specs

to_integer(charlist(), 2..36) :: integer()

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

Inlined by the compiler.

The base needs to be between 2 and 36.

Examples

iex> List.to_integer('3FF', 16)
1023