[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: Number2Bit-Vector Conversion ?
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: Re: Q: Number2Bit-Vector Conversion ?
- From: Raymond Toy <toy@rtp.ericsson.se>
- Date: Wed, 16 Apr 1997 08:53:13 -0400
- In-reply-to: (Your message of Wed, 16 Apr 1997 15:03:07 +0200.) <3354C34A.431B@cs.tu-berlin.de>
- References: <3354C34A.431B@cs.tu-berlin.de>
>>>>> "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