Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 3.6 or 3,6? Comma or dot sign?

  • 3.6 or 3,6? Comma or dot sign?

    Posted by David Supan on January 1, 2009 at 6:27 pm
    //Expression 1
    -Math.cos(time*3,6)*50+50;
    //Expression 2
    -Math.cos(time*3.6)*50+50;

    Hi!

    I was writing an expression and noticed that there is a difference in notation of decimal numbers between the American style – dot (.) – and the European style – comma (,).

    What is the difference? Which should I use?

    For example:
    When I use a comma in the expression, I get this post-expression graph (Expression 1):

    However, when I use a dot in the expression, I get the following (Expression 2):

    Just one of my many sigs:
    The American people have always had problems with the immigrants. Ask American Indians… XD

    Dan Ebberts replied 17 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    January 1, 2009 at 8:05 pm

    It appears that Math.cos(time*3,6) just ignores the number after the comma, so you’re just getting the same result as you would with Math.cos(time*3). 3.6 gives you the correct result (at least for the version of AE that you’re running).

    Dan

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