Re: numbers to text
- Posted by bobspringett <bobspringett at WANADOO.FR> Aug 31, 2000
- 463 views
Thanks Lewis. Regards Bob ----- Original Message ----- From: Lewis Townsend <keroltarr at HOTMAIL.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Wednesday, August 30, 2000 8:47 PM Subject: Re: numbers to text > Hello Bob, > > >I have a sequence of many floating point numbers. > >I would like to check the length of each of them using getTextExtent() but > >text data is required by this function and I am getting a > >type check error when I use sequence[n]. > >If I include the variable assigned to sequence[n] in quotation marks it > >will print the name of the variable.. How do I change the > >value of the variable into text notation. ie what's the Euphoria equivalent > >of the basic STR$() function. > >I've read the sequence doc. and the examples for string literals are there > >but I can't find anything for string variables.Thanks in > >advance. > >Regards > >Bob > > I think what you want is the sprint() function in misc.e > example: > > include misc.e > atom num > sequence text > num = 15.1976 > text = sprint (num) -- text is now "15.1976" > ? length (text) -- will print 7 > > later, > Lewis Townsend > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com.