
7 Oct
2007
7 Oct
'07
10:44 p.m.
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