return Math.log(y) / Math.log(x);
Maybe there's another error in your code - what results are you getting if you write them to the console?
Thanks so much for the quick reply!
To be honest, I am pretty new to Edge Animate and jquery, so I am struggling a bit with troubleshooting. I've been using alert(); to figure out what the code is doing, which is pretty slow. (Is there a debugger in this thing? How do I log values to a console? Where would they appear?)
Anyway, the calculation you suggest of:
Math.log(number) / Math.log(10);
seems to work great and solves my immediate issue. Thanks very much!!
Glad it helped! To write values to the console, use
console.log("This gets written to the console");
You can then view it in your browser's console window (location varies by browser e.g. Safari>Develop>Show Error console or Firefox>Tools>Web Developer>Web console)