Description Usage Arguments Details Value Author(s) Examples
bin transforms a decimal number into a binary one in vectorial form.
bin takes as input an integer and transforms it into the corresponding binary number. The output is a vector whose elements are the coefficients of increasing powers of 2, i.e., the ith item is the coefficient for 2^(i-1). For instance,
bin(4) returns (0,0,1).
a vector of 0/1
Lucia Tamburino, Giangiacomo Bravo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.