Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Math.round decimal places

  • Math.round decimal places

    Posted by Çağan Çelik on July 8, 2015 at 11:19 am

    Hi there,

    I was using this expression to get counting numbers from 0 to 110000:

    Math.round(effect("Slider Control")("Slider"))

    but the thing is, when it is 5 digits, it must look like this: 27.675
    and when the number reaches to 6 digits, it must look like this: 110.000

    So far I haven’t been successful, could you guys help me do it?

    Matthew Ingram replied 6 years, 9 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 8, 2015 at 3:58 pm

    This should work:

    (effect(“Slider Control”)(“Slider”)/1000).toFixed(3)

    Dan

  • Matthew Ingram

    August 1, 2019 at 10:13 am

    The number of times you have helped me Dan! Perhaps there’s some way of expressing my gratitude?

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