Learn R Programming

adana (version 1.1.0)

int2bin: Convert an integer to binary coded number

Description

The function int2bin converts integers to binary coded numbers.

Usage

int2bin(int, m)

Arguments

int

Input number (integer)

m

Number of the digits of output value.

Value

Returns the binary coded number of the integer number given in the input.

See Also

int2bin

Examples

Run this code
# NOT RUN {
int2bin(250)      # returns 11111010
int2bin(250, 9)   # returns 011111010
# }

Run the code above in your browser using DataLab