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 with unsubscribe as the subject.

Reply via email to