Rdocumentation
powered by
Learn R Programming
timma (version 1.2.1)
dec2bin: Convert decimal values to binary values
Description
A function to convert decimal values to binary values
Usage
dec2bin(number, bits)
Arguments
number
the decimal number that needs to be converted.
bits
the number of bits of the result
Value
a vector contains of binary values 0 and 1.
Examples
Run this code
dec2bin(
8
,
5
)
Run the code above in your browser using
DataLab