-
How to get decimal number to show after a basic math expression?
Hi all, I’m working on an AE project where there’s basic math happening, but the math answer is not exactly showing what I want.
I have 2 var where the value will be inputted and then I have my end result var and I would want the end result to show a dot/comma and the rest after that. e.g 650.000 – 490.000 = 160.000, but at the moment it just shows 160 instead. I would like it that it show the .000 after 160.
My expression is:
let current = comp("xComp").layerByComment("current_value").text.sourceText.valueAtTime(0);
let start = comp("xComp").layerByComment("start_value").text.sourceText.valueAtTime(0);
paidOff = startValue - currentValue;Thanks beforehand!