# Quickutilβ

Lisp utilities on demand search

There are 4 utilities.

digit-count v2.0

Compute the number of digits in the non-negative integer `n` in base `base`. By default, the base is 10.

Provides
`digit-count`
Source Code

digits v1.0

Return a list of the digits of the non-negative integer `n` in base `base`. 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 of `base^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`
Source Code

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, unless `least-significant-first` is true.

Provides
`bit-vector-integer`
Source Code

integer-bit-vector v1.0

Convert a positive integer `n` to a bit vector. The least significant bits will be first if `least-significant-first` is true.

Provides
`integer-bit-vector`
Source Code