-
counting numbers with commas
I am using the following expression to create a number countdown but I need it to recognize or insert commas in eight digit numbers. Can anyone tell me how to alter it:
P.S. there are also times that I’d like to add dollar signs or percent signs.
startT = 0;
endT = .5;
beginVal = 12400000;
endVal = 10700000;
t = linear(time,startT,endT,beginVal,endVal);
Math.floor(t) + ''