powered by
Convert positive integers to their corresponding binary representation.
IntDecToBin(x, m = 31)
a matrix containing the binary representations
an integer vector
a numeric constant specifying the number of binary digits to use in the output
x <- c(81, 57, 333) IntDecToBin(as.integer(x))
Run the code above in your browser using DataLab