bin2dec | R Documentation |
Converts binary representations to digital numbers (e.g., 10101011 = 171). Fractions, (e.g., 0.11101) will be evaluated to the number of bits provided. The function will handle whole number and fractions, but not whole numbers with fractional parts, (e.g., 111.100110).
bin2dec(digits, round = 4)
digits |
A string of binary digits. |
round |
Rounding for fractional results, defaults to 4. |
Ken Aho
bin2dec(1011001101) #=717
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.