Re: TIB: Number from list
[Prev][Next][Index][Thread]
Re: TIB: Number from list
In a message dated 4/12/99 5:19:31 PM Pacific Daylight Time, Jared173@aol.com
writes:
<<
Say I had a list like {5, 2, 6, 4}
What would be the fastest way to get the third number in the list?
Ooh, apparently a string takes up less memory on the 89. So, how would I do
the same sort of thing for a string, like finding the third number from the
left, etc. ?
>>
\->\=sto command
on the 86 if you do {5,2,6,4}\->\A
then A(1)=5 A(2)=2 A(3)=6 A(4)=4
the syntax may be a little diffrent for the 89
and you can use the "sub" command to deal w/ strings
ex: "5264"\->\A
sub(A,3,1)=6
the 3 points to the first space to start at and 1=the length which would
return 6
once again the 89 may have diffrent syntax
Follow-Ups: