AnsweredAssumed Answered

How do i invert a number?

Question asked by Kirk_1 on Aug 27, 2012
Latest reply on Aug 27, 2012 by philmodjunk

Title

How do i invert a number?

Post

The $discount_pct is the number we offer as a discount. 17.5 or 21.30... how do invert it so i don't have an additional step of subtracting the discounted amount by the rate?

If i did not have the getvalue it would be ($discount_pct-100)*-1... ive tried that a couple ways and cant get the syntax to work. That would turn 17.5 into 82.5...

 

GetValue ( $discount_pct  ; $counter ) * $toplinenumber

Outcomes