Description Usage Arguments Value See Also Examples
These functions provide user-friendly interface to low-level
routines b2d and d2b for converting
between decimal and binary numbers.
1 2 3 4 5 6 |
bin |
binary number as a numeric vector of 0s and 1s or a single character string containing 0s and 1s only |
dec |
single decimal number to be converted |
num |
logical, whether a numeric vector (instead of single character string) should be returned |
For bin2dec the decimal number representing the binary input.
For dec2bin, if num is TRUE, which is the default,
the numeric vector containing the binary number. If num is
FALSE then a single string containing the sequence of 0s and
1s is returned.
b2d and d2b for low-level procedures
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.