Re: TIB: Real number to string


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

Re: TIB: Real number to string




Okay, I can help then.

:Input x
:Eq>St(x,y)  #this is command in the string menu, [2nd][6]
:y+"whatever"->y
:Disp y

----- Original Message -----
From: "Andrew Hivner" <ahivner@desupernet.net>
To: <ti-basic@lists.ticalc.org>
Sent: Tuesday, September 12, 2000 9:46 PM
Subject: Re: TIB: Real number to string


>
> Actually the problem is a little more complicated than that, the
variable is
> calculated following a user's input, then once in a string, i want
it to be
> concocted with another string again.  The program would look more
like this:
>
> Prompt x
> part of program that changes x to a string (y)
> y+"another string"->y
> more stuff with y like counting the number of digits and stuff
> Disp y
>
> Oh, this is for an 86
>
> Andrew
>
>
>
>
>
>
> ----- Original Message -----
> From: UT Rules <dragoon6868@hotmail.com>
> To: <ti-basic@lists.ticalc.org>
> Sent: Tuesday, September 12, 2000 5:58 PM
> Subject: Re: TIB: Real number to string
>
>
> >
> >
> > just store the number you were trying to store in quotation marks.
here
> > goes:
> >
> > "1.2"->x
> > Disp x
> >
> > or you can simply display the variable like this:
> >
> > 1.2->x
> > Disp (or ouput which ever you use) "You entered"&string(x)&"."
> >
> > the syntax for the string() function is- string(variablename) if
you ever
> > wanna use it again.
> > hopefully you know about the ampersand(&) which lets you put
variables in
> > the sentences.
> > if you need more help just e-mail me but i am sure one(both) of
those will
> > work.
> >
> > Ridge Racer
> >
> >
> > >From: "Andrew Hivner" <ahivner@desupernet.net>
> > >Reply-To: ti-basic@lists.ticalc.org
> > >To: <ti-basic@lists.ticalc.org>
> > >Subject: TIB: Real number to string
> > >Date: Mon, 11 Sep 2000 22:50:49 -0400
> > >
> > >
> > >how do you convert a real number to a string with the number in
it?, ie:
> > >1.2->x
> > >magic part of program
> > >Disp y
> > >where y="1.2"
> > >
> > >Thanks
> > >
> > >Andrew
> > >
> > >
> >
> >
______________________________________________________________________
___
> > 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.
> >
> >
> >
>
>
>



Follow-Ups: References: