Re: A86: real var to string var


[Prev][Next][Index][Thread]

Re: A86: real var to string var




>>I have needed that before too. There is no routine.
>>The only way is manually.
>>:If x==1
>>:"1"->y
>
>store the number in y1 or something then do Eq>St(y1,string)

1. You get an error syntax.(y1 can only be an equation, not a real)
2. Manually isn't the only way.

The best method I know is to make a basic program...
  Program: r2s
:LinR {0,1},{Ans,Ans
:Eq>St(RegEq,q
:sub(q,1,lngth q-3

Now whenever you want to convert a number to string use code like:
:WhateverVariableOrConstantEtc
:r2s
:Disp "Number="+Ans

So, before the program is run, Ans contains the number you want to
convert, and afterwards Ans contains the string equivalent.


Sincerely,
The Unibomer

Jared Ivey
Unibomer@Juno.com
http://www.geocities.com/SiliconValley/Vista/7342

Usenet is "the closest thing this planet has to a collective
consciousness." -- Ray Lampman (Ray.Lampman@FullFeed.Com)


_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


Follow-Ups: References: