Convert integer value to other base
Converts integer value to other base.
toBase(x, base = 2L)
x
: positive integer representing the number to convert.base
: positive integer representing the base.The function returns a numeric vector containing representation of x
in a base given in base
.
toBase(888, 5)
Useful links