dot-toBin: Make a binary value from an integer

.toBinR Documentation

Make a binary value from an integer

Description

Make a binary value from an integer

Usage

.toBin(x, len = NULL, pad = TRUE, dec = FALSE)

Arguments

x

numeric(1)
the numeric value for which to derive the binary value.

len

integerish(1)
the number of bits used to capture the value.

pad

logical(1)
whether to pad the binary value with 0 values.

dec

logical(1)
whether to transform the decimal part to bits, or the integer part.


bitfield documentation built on June 9, 2025, 5:09 p.m.