Re: How do I ...


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

Re: How do I ...



Here is one method of performing what you want.  It might not be the
prettiest but it works well.
Comments are added to the right where needed.  Note:  -> denotes the STO
key.
Any comments/improvements can be addressed to me at rhomard@mci2000.com




Input A
abs A -> B                      : get the absolute value for the LOG function
iPart (log B) -> D              : n-1 digits in the number
While D>2                       : Loop to strip off the numbers to the left of the hundreds
B - 10^D -> B                           place value
iPart (log B) -> D
End


100 -> C                        : Loop to determine the value of the hundreds place.
While C <= B
C+100 -> C
End


Disp C/100 - 1                  : Display the value.




Me Too <LoStCauSe1@gnn.com> wrote in article
<572lhi$ikg@news-e2b.gnn.com>...
>   Hi,
>
>       Does anyone know how I can get a single digit out of a string
> on a 82
> i.e.
> 10500->A
>
> how would I get the 5 out of that number.
>
>
>


References: