-
rounding number to 2 decimal precision through slider control -> it moves the layer when animating
Hi peeps,
so, I use the expression for using a slider control and rounding it up to 2 decimals:
n = effect(“Slider Control”)(“Slider”);
d = 100;
Math.round(n*d)/dbecause of different digits’ width the number always dances when the slider animated from 0 to 100 e.g.
n = effect("Slider Control")("Slider");
d = 100;
Math.round(n*d)/d