R/convert_bin2dec.R

Defines functions convert_bin2dec

Documented in convert_bin2dec

#' @export
convert_bin2dec <- function(b){
	sum( 2^(seq(length(b)-1,0,by=-1))*b )
}

Try the QuantumOps package in your browser

Any scripts or data that you put into this service are public.

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.