-
need assistance modifying a expression
I found this beautiful expression on here and i need a little help editing it.
My question has to do with the part that adds the Comma to the last 3 digets of my number. As you can see i’m working with a very big number, how do i add additional commas to the rest of it?
Thanks!
Dylan
startValue = 16549376432298;
endValue = 17549376432298;
dur = 30; //secondss = "" + Math.round(linear(time,0,dur,startValue,endValue));
s.substr(0,s.length-3) + "," + s.substr(-3,3)