From: Frederick C. Gibson, Architect
Subject: Converting a Number to a String?
Date: 
Message-ID: <7i9jfl$jfq@dfw-ixnews10.ix.netcom.com>
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

From: Hartmann Schaffer
Subject: Re: Converting a Number to a String?
Date: 
Message-ID: <crY13.44769$134.378776@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
From: Frederick C. Gibson, Architect
Subject: Re: Converting a Number to a String?
Date: 
Message-ID: <7i9kdr$jt7@dfw-ixnews10.ix.netcom.com>
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
>
From: Steve Gonedes
Subject: Re: Converting a Number to a String?
Date: 
Message-ID: <m2u2t3xzql.fsf@KludgeUnix.com>
"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.
From: Kent M Pitman
Subject: Re: Converting a Number to a String?
Date: 
Message-ID: <sfwr9o7cw6h.fsf@world.std.com>
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.