[chuck-users] Math.trunc

Jascha Narveson jnarveson at wesleyan.edu
Sun Oct 7 22:44:53 EDT 2007



This should be an easy function to use, but i can't for the life of  
me figure the syntax out - i've tried

5 => Math.trunc(2);

and

Math.trunc(5,2);

and

5.trunc(2);  // this would be the nicest syntax

and some other things, to no avail - the documentation isn't big on  
examples for stuff like this.



thanks,

jascha


More information about the chuck-users mailing list