to-string 10 + load "1.15" On 11/17/05, Akram <[EMAIL PROTECTED]> wrote: > > > Dear Ladislav Mecir, > Thanks so much, I can see that. After converting a string to a number, how > to add "1.15" with 10 and then convert a new number with a string. > Sorry for the question. > > Regards, > Akram > > ----- Original Message ----- > From: "Ladislav Mecir" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, November 17, 2005 7:03 PM > Subject: [REBOL] Re: Please Very Urgent: needs help to convert "variable" > to > a number > > > > > > Akram napsal(a): > > > > >Dear Rebol Expert, > > >I'm sorry, I'm a newbie and not proficiently good in programming. Could > > >someone please help me to fix the problem or show me the way to solve > it. > > >I'm actually try to communicate two master slave Pan tilt machines with > > >rebol script. The question is how I want to convert the 'angle' > variable > to > > >a number, then add 10, and then convert back to a string to send to the > > >machine. The script as below; > > > > > >insert d30 "GetPan" > > >string! angle: first d30 > > >string! ptupan: clear "" > > >append ptupan "dopan " > > >append ptupan angle > > >print ptupan > > >insert ptu ptupan > > > > > >Thanks in advance for the help and I do really appreciate it. > > > > > >Regards, > > >Akram > > > > > > > > > > > Convert a string to a number: > > > > string: "1.15" > > number: load string > > > > another option: > > > > number: to decimal! string > > > > convert a number to a string: > > > > mold number > > > > another option: > > > > form number > > > > HTH > > -- > > To unsubscribe from the list, just send an email to > > lists at rebol.com <http://rebol.com> with unsubscribe as the subject. > > > > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com <http://rebol.com> with unsubscribe as the subject. > >
-- ... nice weather eh -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
