[chuck-users] float arguments form command line

Wolfgang Gil wolfgang.gil at gmail.com
Thu Feb 17 20:38:16 EST 2011

Hey again!
does anybody knows how to get float arguments from the command line window?
I tried:

if( me.args() ) //0: filename,1: min_time,2: max_time


    me.arg(0) => string filename;

    me.arg(1) $ float => float MIN_TIME;

    me.arg(2) $ float => float MAX_TIME;


but I'm getting  "line(4): invalid cast to 'float' from 'string'"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20110217/6a1e1ed9/attachment.htm>

More information about the chuck-users mailing list