Re: How do I ...
[Prev][Next][Index][Thread]
I don't know that strings are available on the TI-82, but if you are
talking about a REAL variable, and you want to get the third digit from the
right (100s place)
mod(int(N/(10^(P-1))),10)
where N is the number and P is the number of the place over that you want
to get. In this case, N=10500, P=3, and the expr=5.
At 20:59 11/21/96 -0500, Me Too wrote:
> 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.
>
>
+--------------------------------------------------------+
| Peter Kolbus +1.810.474.0872 |
| ae607@detroit.freenet.org #include <disclaimer.h> |
+--------------------------------------------------------+
| Due to financial difficulties, the light at the end of |
| the tunnel has been permanently disconnected. |
| |
| The packet goes out the card, into the copper, out |
| the router, onto the fiber, across the world, thru |
| the copper............ NOTHING BUT NET. |
| |
| ***Written using 100% recycled electrons*** |
| *** (80% post-consumer) *** |
+--------------------------------------------------------+
References: