[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: Number2Bit-Vector Conversion ?



>>>>> "Mark" == Mark Mueller <stoffel@cs.tu-berlin.de> writes:


    Mark> Hi,
    Mark> does someone know, if there exists a function in clisp to
    Mark> convert a number into a bit-vector ?

If you don't want something fast, how about something like this
(replace 1234 with your number):

(with-input-from-string (s (format nil "#*~2r" 1234))
  (read s))

Ray