Numbers in Smalltalk

Benoit St-Jean bstjean at yahoo.com
Sun Dec 9 22:14:04 UTC 2001


--- James Stark <james_stark03 at hotmail.com> wrote:
> Hi!
> 
> I have a number in a variable number called:
> 
> (anumber)
> 
> I want to output this to a file... but smalltalk
> comes up with something 
> about "ERROR: anString) when I put nextPutAll.  It


What you need is to transform the number into a String
(and vice-versa when you'll read it from a file)

Try this in a workspace, inspect and experiment!

3.4545 printString.
Number readFrom: '3.4545'.

Hope this helps!



=====
----------------------
Benoit St-Jean
bstjean at yahoo.com
ICQ: 130611319 / Yahoo Mssngr: bstjean
http://cactus.swiki.net
"We're only immortal for a limited time", Neil Peart
----------------------

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com




More information about the Squeak-dev mailing list