There are 4 utilities.
- digit-count v2.0
-
Compute the number of digits in the non-negative integer
n
in basebase
. By default, the base is 10.- Provides
digit-count
- digits v1.0
-
Return a list of the digits of the non-negative integer
n
in basebase
. By default, decimal digits are returned.The order of the digits is such that the
k
th element of the list refers to the coefficient ofbase^k
. In other words, given the resulting list(c0 c1 c2 ... ck)
the following identity holds:
n = c0 + c1*base + c2*base^2 + ... + ck*base^k.
- Provides
digits
- bit-vector-integer v1.0
-
Convert a bit vector
bv
to a positive integer. The bits of the integer are ordered from most significant to least significant, unlessleast-significant-first
is true.- Provides
bit-vector-integer
- integer-bit-vector v1.0
-
Convert a positive integer
n
to a bit vector. The least significant bits will be first ifleast-significant-first
is true.- Provides
integer-bit-vector