IntDecToBin: Binary Expansion of Positive Integers

View source: R/IntDecToBin.R

IntDecToBinR Documentation

Binary Expansion of Positive Integers

Description

Convert positive integers to their corresponding binary representation.

Usage

IntDecToBin(x, m = 31) 

Arguments

x

an integer vector

m

a numeric constant specifying the number of binary digits to use in the output

Value

a matrix containing the binary representations

Examples

x <- c(81, 57, 333) 
IntDecToBin(as.integer(x)) 

MiscMath documentation built on April 13, 2025, 9:07 a.m.