which lists the Math.trunc() as a valid built in function, however Max (8.5.3) does not support it. For example this simple code of:
when sent the message of:
yields the following error:
js: error calling function doit [NOF_NxNR_js2.js]
Indicatng the Math.trunc is not supported.
So perhaps Max developers decided to pick and choose which built-in functions to implement? (a bit of sarcasm ;) .
So far the only method I have is to look at say:
pick a function I would like to use and cross my fingers that Max supports it.