powered by
To compute the decimal representation of a number written in a binary format
bin2dec(x)
Numeric. Number in binary format written only with 0s and 1s. See Example below.
Decimal representation of the number x
x
Chapter 5 (Data Manipulation, Functions) from the book: The R Software, Fundamentals of Programming and Statistical Analysis
# NOT RUN { bin2dec(1010.101) # }
Run the code above in your browser using DataLab