How does one convert a number to a string in CL? ex: 1834 to "1834"
Thanks!
Fred Gibson, Architect
·········@gibson-design.com Architecture Designed Objectively
==================================-----------||||||||||||||||||||||
Frederick Clifford Gibson Architect & Associates
1220 14th Avenue Suite 106
San Francisco, CA 94122
415.753.3797 |tel| 415.759.8848 |fax|
(c)1999 http://www.gibson-design.com
EASG: Epistemology-Aesthetics Study Group
http://www.gibson-design.com/philosophy
ART: American Renaissance for the Twenty-First Century
http://www.art-21.org
In article <··········@dfw-ixnews10.ix.netcom.com>,
"Frederick C. Gibson, Architect" <·········@gibson-design.com> writes:
> How does one convert a number to a string in CL? ex: 1834 to "1834"
(format nil "~d" 1834)
Check the def of format (I am not 100% sure about the d)
Hartmann Schaffer
Thanks, it works!
Hartmann Schaffer <··@inferno.nirvananet> wrote in message
···························@tor-nn1.netcom.ca...
> In article <··········@dfw-ixnews10.ix.netcom.com>,
> "Frederick C. Gibson, Architect" <·········@gibson-design.com> writes:
> > How does one convert a number to a string in CL? ex: 1834 to "1834"
>
> (format nil "~d" 1834)
>
> Check the def of format (I am not 100% sure about the d)
>
> Hartmann Schaffer
>
"Frederick C. Gibson, Architect" <·········@gibson-design.com> writes:
< How does one convert a number to a string in CL? ex: 1834 to "1834"
<
< Thanks!
See the functions prin1-to-string and princ-to-string.
Steve Gonedes <········@worldnet.att.net> writes:
> "Frederick C. Gibson, Architect" <·········@gibson-design.com> writes:
>
> < How does one convert a number to a string in CL? ex: 1834 to "1834"
> <
> < Thanks!
>
> See the functions prin1-to-string and princ-to-string.
And write-to-string, which takes a :radix and a :base argument
that is sometimes quite useful.