FORUMS: list search recent posts

Math.round decimal places

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Çağan Çelik
Math.round decimal places
on Jul 8, 2015 at 11:19:07 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?


Return to posts index

Dan Ebberts
Re: Math.round decimal places
on Jul 8, 2015 at 3:58:12 pm

This should work:

(effect("Slider Control")("Slider")/1000).toFixed(3)


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]