fillUpToBit: Fill up to bit (000..)

Description Usage Arguments Details Value See Also Examples

Description

Fills up the binary number with zeros(0) or ones(1), to the size n in bit.

Usage

1
fillUpToBit(x, n, value=FALSE)

Arguments

x

The binary number to fill up with zeros. (Any binary vector).

n

size in bit.

value

to fill up with FALSE(0) or fill up with TRUE(1).

Details

No floating point supported.

Value

binary number. A binary vector with the desired size.

See Also

fillUpToByte.

Examples

1
2
fillUpToBit(as.binary(c(1,1), logic=TRUE), n=4)
fillUpToBit(as.binary(c(1,0,1), logic=TRUE), n=4, value=FALSE)

binaryLogic documentation built on May 2, 2019, 10:25 a.m.