Hi all,
a new question after some time ago..
On the previous increment numbers expression’s, my new problem is how to add a comma since the 1000’s.
So, from 0 to 999, it doesn’t appear a comma, but at 1000’s, the expression adds a comma to separate thousandths.
Thanks!
base = linear(effect("Slider Control")("Slider"), 0, 1, 000000, 100000);
rounded = Math.floor(base);
str = "" + rounded;
while (str.length < 6) str = "0" + str;
len = str.length;
num = "";
nospace = "";
i = len-1;
while(i >= 0)
{
num = str[i] + num;
nospace = str[i]+nospace;
if ((nospace.length)%3 == 0) num = " " + num;
i--;
}
num
Valo Balmaseda