bytesNeeded: Minimum number of "byte" needed to hold n "bit"

Description Usage Arguments Value See Also Examples

Description

A simple helper function that returns the minimum number of byte needed to hold the amount of n bit.

Usage

1

Arguments

n

The number of bit.

Value

The number of minimum byte needed to hold n bit.

See Also

fillUpToByte or binaryPrefix or byte

Examples

1
2
ten <- as.binary(10)
bytesNeeded(length(ten))

d4ndo/binaryLogic documentation built on May 14, 2019, 3:05 p.m.