Learn R Programming

QuantumOps (version 3.0.1)

convert_bin2dec: convert_bin2dec

Description

Takes a vector of unsigned bits with MSB first and produces integer value

Usage

convert_bin2dec(b)

Arguments

b

Vector of bits with most significant bits first

Value

Integer value of bits

Examples

Run this code
# NOT RUN {
 convert_bin2dec( c(1,0,0) )

# }

Run the code above in your browser using DataLab