[TIB] Re: equation to string?
[Prev][Next][Index][Thread]
[TIB] Re: equation to string?
I remember a while back I dealt with that problem for 83/83+. This is the
code I came up with (obviously, its 83(+) basic, but it shouldn't be too
hard to convert to 85/86). It's been a while since I've used it, but it
should be nicely optimized and it will work for any number (integer,
fraction, whatever) with a finite number of decimal places. Although, it
might take a little while to do a 99-place decimal... If you stick to
reasonable numbers, like 5 or 2.74, it should be quite fast. Obviously, if
you'll be using this as a subroutine in a program, you might find removing
the prompt and disp commands useful.
Prompt X
X->Y:0->M
Repeat iPart(Y)=0
Y/10->Y
M+1->M
End
X/10^(M-1)->Y
iPart(Y)->X
sub("0123456789",X+1,1)->Str1
Y-X->Y
10Y->Y
1->Z
Repeat Y=0
If Z=M
Str1+"."->Str1
iPart(Y)->X
Str1+sub("0123456789",X+1,1)->Str1
Y-X->Y
10Y->Y
Z+1->Z
End
Disp Str1
Enjoy.
Eric Tollefson
CmdrERT01@yahoo.com
At 08:29 PM 3/16/2001 -0500, you wrote:
>on the 89 how can you get the string command to not solve the eguation
>before solving it or is there another way to convert eguations to strings?
>
>also how exactly do you get the Eq->St command to work on the 85/86 I
>looked it up in the manual and did it the way it said too but it didnt work?
>
>______________________________________________
>FREE Personalized Email at Mail.com
>Sign up at http://www.mail.com/?sr=signup
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Follow-Ups:
References: