[chuck-users] Command Line Options in patch

mike clemow michaelclemow at gmail.com
Tue Aug 3 12:57:38 EDT 2010


Hi Miquel,

Look in the manual at the api reference under the Std namespace.
There you will find many useful functions.

One such function is Std.atoi(); which takes a string and returns an
integer representation of the string.  It's short for ASCII to
INTEGER.

<<< Std.atoi("3") >>>;

prints

3 : (int)

Good luck!

Mike



2010/8/3 miquel parera <computer.music.neix at gmail.com>:
> Hello.
>
> Sorry for the very basic question:
>
> In the command line options (chuck:2:3) the me. function retrieves 2 & 3
> like strings, but i want ints.
>
> Any function for transforming like a.toString() but a.toInt() ?
>
>
> Thanks,
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>



-- 
http://michaelclemow.com
http://semiotech.org


More information about the chuck-users mailing list