Integer

to_string/2

to_string(integer, base \\ 10)

Returns a binary which corresponds to the text representation of integer.

If base is provided then integer is converted given that base.