antl_utils v0.4.1 AntlUtils.Elixir.Integer

Link to this section Summary

Functions

Returns a binary which corresponds to the text representation of integer in the given base

Link to this section Functions

Link to this function

to_string(integer, base)

Specs

to_string(integer(), 1..255) :: binary()

Returns a binary which corresponds to the text representation of integer in the given base

base can be an integer between 2 and 36, 62 or 64

Examples

iex> Integer.to_string(0, 62) "0" iex> Integer.to_string(1, 62) "1"