Forum Replies Created

  • Ernesto Sanchez

    November 19, 2014 at 6:35 pm in reply to: Money counter w/ a non-liner counting progression

    You da man Dan! much appreciated!

  • Ernesto Sanchez

    November 19, 2014 at 12:39 am in reply to: Money counter w/ a non-liner counting progression

    Hi Dan,

    I need to add a dollar sign to to the following digits $1,292,788. I’m using this expression below

    startValue = 0;
    endValue = 1292788;
    dur = 8.5; //seconds

    s = "" + Math.round(linear(time,0,dur,startValue,endValue));
    if (s.length > 6)
    s.substr(0,s.length-6) + "," + s.substr(-6,3) + "," + s.substr(-3,3)
    else if (s.length > 3)
    s.substr(0,s.length-3) + "," + s.substr(-3,3)
    else
    s

  • Ernesto Sanchez

    March 24, 2014 at 8:44 pm in reply to: number counter

    It worked! Thank you Dan!

  • Ernesto Sanchez

    March 24, 2014 at 7:06 pm in reply to: number counter

    I’m working on a project and I used this code and it works great, thank you for that!

    I’m trying to include text at the end of the number, for example, I have the the counter ending at $4.2 but I wanted to add the “M” after the number 2, how can I do that.

    Please help.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy