encode | R Documentation |
The function encode converts a real number to a binary number with m digits between the given lower bound and upper bound.
encode(real, lb, ub, m)
real |
A real number |
lb |
Lower bound of real number |
ub |
Upper bound of real number |
m |
Number of the digits of output value. |
This function converts a real number to its binary equivalent expressed in m digits in the range [lb, ub].
Returns the binary equivalent of the input number.
Zeynel Cebeci & Erkut Tekeli
decode
x = 102.5 encode(x, lb=50, ub=250, m=8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.