Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Math.round Expression Help

  • Math.round Expression Help

    Posted by Adamci on October 10, 2007 at 12:45 am

    Ok so I have a count UP from say 0 to 145. I am using this expression on my text:

    startTime = 0
    endTime = 5
    startValue = 0
    endValue = 145
    linear (time, startTime, endTime, startValue, endValue)

    I am getting about 10 decimal digits however and would like just the whole numbers from 0 to 145.

    How do i use Math.Round to do this? Or is there another way??

    Adamci replied 18 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Colin Braley

    October 10, 2007 at 2:39 am

    Try something like this:

    startTime = 0;
    endTime = 5;
    startValue = 0;
    endValue = 145;
    nonRounded = linear (time, startTime, endTime, startValue, endValue);
    Math.round( nonRounded )

    ~Colin

    ~Colin

    http://www.colinbraley.com

  • Adamci

    October 10, 2007 at 10:08 am

    THANK YOU! its works perfectly.

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