Re: TIB: Real number to string


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

Re: TIB: Real number to string




>
> well, that doesn't work, but i can see what you are getting at,
however i
> tried that before too.
> This does NOT work (on an 86):
>
> Prompt x
> y99=x
> Eq>St(y99,Y)
> Disp Y  ~This displays "x", not the value of x, and is the main
problem i am
> working with.
>
> If anyone knows how to fix it, let me know.
> Andrew
>
>
> ----- Original Message -----
> From: Robert Mohr <rmohr02@twilight-ti.org>
> To: <ti-basic@lists.ticalc.org>
> Sent: Wednesday, September 13, 2000 3:35 PM
> Subject: 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.
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
>
>

Received: by towerguard.edu.sollentuna.se (Postfix, from userid 507)
	id C3D1FA409D; Fri, 15 Sep 2000 02:07:37 +0200 (CEST)
Delivered-To: ti-basic@lists.ticalc.org
X-Originating-IP: [63.23.244.17]
From: "Andrew Hivner" <ahivner@desupernet.net>
References: <F2486j5Brrd58ircfI70000fd9b@hotmail.com> <002d01c01d24$61dd5fe0$9cdd03d0@newmicronpc> <OE8dZ3MJJ1vbfBarV3V000021f2@hotmail.com> <006001c01dd7$513cff20$b0df03d0@newmicronpc>
Date: Thu, 14 Sep 2000 20:04:44 -0400
Organization: Twilight-TI
MIME-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <OE10XsNQptgFrYILoyg00000029@hotmail.com>
X-OriginalArrivalTime: 15 Sep 2000 00:07:27.0992 (UTC) FILETIME=[EF06E780:01C01EA8]
Sender: owner-ti-basic@lists.ticalc.org
Precedence: list
Reply-To: ti-basic@lists.ticalc.org
Errors-To: ti-basic-errors@lists.ticalc.org
You have to use the store sign.  An = will set the value of y99 to
whatever x currently is, and when converted to a string it will be x.
Make sure you use the store sign.
----- Original Message -----
Sent: Wednesday, September 13, 2000 7:06 PM
Resent-Date: Fri, 15 Sep 2000 15:32:38 +0200 (MET DST)
Resent-From: relic@daimi.au.dk
Resent-To: ti-basic@lists.ticalc.org
Resent-Message-ID: <969024758.39c224f664b96@imp.daimi.au.dk>
X-Originating-IP: 130.225.18.237


You have to use the store sign.  An = will set the value of y99 to
whatever x currently is, and when converted to a string it will be x.
Make sure you use the store sign.

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


>
> well, that doesn't work, but i can see what you are getting at,
however i
> tried that before too.
> This does NOT work (on an 86):
>
> Prompt x
> y99=x
> Eq>St(y99,Y)
> Disp Y  ~This displays "x", not the value of x, and is the main
problem i am
> working with.
>
> If anyone knows how to fix it, let me know.
> Andrew
>
>
> ----- Original Message -----
> From: Robert Mohr <rmohr02@twilight-ti.org>
> To: <ti-basic@lists.ticalc.org>
> Sent: Wednesday, September 13, 2000 3:35 PM
> Subject: 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.
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
>
>