Re: TIB: number to string


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

Re: TIB: number to string




Jeff Glover wrote:
> Is it possible to convert a number to a string.  Eq>St() will only do
> equations not numbers.  This is what I want...
> :Input A
> :<Do things with the number here>
> :Number>String(A,B)
> :B
> B would show a number not an equation.

I'm assuming 85/86 here. It's possible - with some trickery. I learned this
when it was brought up on this mailinglist a couple years ago, and it's been a
lifesaver in some of my programs.

:Input A
:<Do things with the number here>
:{0,1}/->/C
:{A,A}/->/D
:LinR C,D
:Eq>St(ReqEq,B)
:sub(B,1,(lngth(B)-3))/->/B

Now B is a string of the number A.

-justin


Follow-Ups: References: