Re: TIB: number to string... WORKS!
[Prev][Next][Index][Thread]
Re: TIB: number to string... WORKS!
You got it all wrong, see me previous post.
+AD4-:+AHs-0,1+AH0-/-+AD4-/C +ADs-need this..
+AD4-:+AHs-A,A+AH0-/-+AD4-/D +ADs-changes the number you want into a data
+AD4- +ADs-set.
+AD4-:LinR C,D +ADs-a linear regression of the two data
+AD4- +ADs-sets. it takes the point (0,1) and
+AD4- +ADs-(A,A) and finds the equation of the
+AD4- +ADs-line between them. You will get an
+AD4- +ADs-equation of something like Ax
+AD4- +ADs-(i think).
LinR takes the data in the first list (+ACI-C+ACI-) as the x coordinates and the
second list (+ACI-D+ACI-) as the y coordinates. So for +AHs-0,1+AH0- and +AHs-A,A+AH0- you would get
(0,A) and (1,A) and that gives a linear equation y+AD0-A+-0x where a is your
number (it's a horizontal line). It will store +ACI-A+-0x+ACI- into RegEq. Come on,
read the manual.
+AD4-:Eq+AD4-St(ReqEq,B) +ADs-this changes the equation into a
+AD4- +ADs-string.
+AD4-:sub(B,1,(lngth(B)-3))/-+AD4-/B +ADs-this takes the string and
+AD4- +ADs-removes the x part of it, and then
+AD4- +ADs-stores A into B as a string.
+AD4-
+AD4-it is a simple, really extremely useful
Basically right, check my previous post for a little more details.
BTW: thanks Justin (I think you posted it originally), I just got an '86 and
I was wondering how to do this.
-Philipp
+AD4APg- +AD4-:Input A
+AD4APg- +AD4-:+ADw-Do things with the number here+AD4-
+AD4APg- +AD4-:+AHs-0,1+AH0-/-+AD4-/C
+AD4APg- +AD4-:+AHs-A,A+AH0-/-+AD4-/D
+AD4APg- +AD4-:LinR C,D
+AD4APg- +AD4-:Eq+AD4-St(ReqEq,B)
+AD4APg- +AD4-:sub(B,1,(lngth(B)-3))/-+AD4-/B
+AD4APg- +AD4-
+AD4APg- +AD4-Now B is a string of the number A.
+AD4APg- +AD4-
+AD4APg- +AD4--justin