Integer.to_string
You're seeing just the function
to_string
, go back to Integer module for more information.
Specs
Returns a binary which corresponds to the text representation
of integer
in the given base
.
base
can be an integer between 2 and 36. If no base
is given,
it defaults to 10
.
Inlined by the compiler.
Examples
iex> Integer.to_string(123)
"123"
iex> Integer.to_string(+456)
"456"
iex> Integer.to_string(-789)
"-789"
iex> Integer.to_string(0123)
"123"
iex> Integer.to_string(100, 16)
"64"
iex> Integer.to_string(-100, 16)
"-64"
iex> Integer.to_string(882_681_651, 36)
"ELIXIR"