convert_dec2bin: convert_dec2bin

Description Usage Arguments Value Examples

View source: R/convert_dec2bin.R

Description

Takes an integer and returns an unsigned vector bits representing the same value

Usage

1
convert_dec2bin(x,len=32)

Arguments

x

Integer

len

Number of bits to represent integer with. Will crop most significant bits if insufficient length.

Value

Vector of bits with MSB first

Examples

1
2

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