Re: TI-85 Programming Question


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

Re: TI-85 Programming Question



This is a multi-part message in MIME format.


------=_NextPart_000_01BBC74A.771B3640
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


I might be able to think up a prog here...wait a minute...ok.


This converts a string with a length of 1 to a variable by comparing it
with the individual characters of a string containing the complete set of
numbers.  I'm assuming the stored number is in the string "NO".  The new
variable containing the newly converted real number is gonna be "X".  If
you see "\->\" then that stands for a store symbol.  Ok then, here:


"01234565789"\->\NUM
For(A,1,10
If NO==sub(NUM,A,1):A-1\->\X
End


Need help?  Send me e-mail.


P o o k m a n
pookman@owb.mindspring.com
http://www.mindspring.com/~pookman/Index.html


"Don't play monopoly with monkeys, cause they don't take it lightly when
you get caught stealing the $500's."
--Pookman
------=_NextPart_000_01BBC74A.771B3640
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


<html><head></head><BODY bgcolor=3D"#C0C0C0">
<font size=3D3 =
color=3D"#000000" face=3D"Comic Sans MS">I might be able to think up a =
prog here...wait a minute...ok.This converts a string with a =
length of 1 to a variable by comparing it with the individual characters =
of a string containing the complete set of numbers. &nbsp;I'm assuming =
the stored number is in the string &quot;NO&quot;. &nbsp;The new =
variable containing the newly converted real number is gonna be =
&quot;X&quot;. &nbsp;If you see &quot;\->\&quot; then that stands for =
a store symbol. &nbsp;Ok then, =
here:&quot;01234565789&quot;\->\NUMFor(A,1,10If =
NO=3D=3Dsub(NUM,A,1):A-1\->\XEndNeed help? &nbsp;Send me =
e-mail.P o o k m a n<font =
color=3D"#0000FF"><u>pookman@owb.mindspring.com</u><font =
color=3D"#000000"><font =
color=3D"#0000FF"><u>http://www.mindspring.com/~pookman/Index.html</u><fo=
nt color=3D"#000000">&quot;Don't play monopoly with monkeys, =
cause they don't take it lightly when you get caught stealing the =
$500's.&quot;--Pookman</p>
</font></font></font></font></font></body></html>
------=_NextPart_000_01BBC74A.771B3640--


References: