Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

EA javascript - Calculate log() base 10?

$
0
0


I am writing an algorithm to calculate the top value and ticks on the Y axis of a dynamic chart.

 

To do the calculation the cleanest way, I need to be able to calculate a log() with a base 10.

 

JavaScript has both a log base 10 function - Math.log10() - and a constant - Math.LN10 - and a way that log can be calculated for any base - Math.log(num, base). Sadly, none of these seem to work in Edge Animate CC's version of javascript.

 

Can someone tell me how to get the log of a number in base 10 in Edge Animate CC?

 

TIA,

Carolyn


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>