transratio formula in JS

May 24, 2013 at 2:50am

transratio formula in JS

Hi All,

I’m trying to replicate the transratio function by EJ in Javascript.

From the object: [expr exp(.057762265 * $f1)]
In JS : Math.exp(.0057762265 * $f1)

They don’t give the same values, and the JS one seems to be wrong.

Is this a limitation of JS in Max or am I missing something?

May 25, 2013 at 6:16pm

in your example:
.005… != .05…


– Pasted Max Patch, click to expand. –



You must be logged in to reply to this topic.