As I try to turn decimals into a percent by multiplying decimals by 100, I get this funkiness.
Expression = var_a * 100
var_a = .07
should give me 7 correct? Instead it gives me this...
You cannot format the number of decimals in Captivate, you need to do that using JS. I have some examples here:
In your case you could choose to add those lines to your advanced action:
I ended up writing it like this:
But your way might be easier to understand.
Technically is better to use Math.round instead of toFixed(0) as toFixed returns a string and you could not do any further calculations with the result of toFixed.
Since you do not show what variable is being set with the result of your expression, I'll just use the variable "result"
Thanks, David. I took this from an example where no further calculations were needed, since it was an end result. OP used the variable var_a.