Forums > Javascript

transratio formula in JS

May 24, 2013 | 2:50 am

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?



ak
May 25, 2013 | 6:16 pm

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

<code>

– Pasted Max Patch, click to expand. –

</code>


Viewing 2 posts - 1 through 2 (of 2 total)