powered by
To compute the binary representation of a number written in a decimal format
dec2bin(x,prec=52)
Numeric. Number in a decimal format.
Integer. Precision desired.
Binary 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 { dec2bin(10.625,3) # }
Run the code above in your browser using DataLab