differencePercentage = Math.round(((Pay.init / Pay.current) * 100) – 100);
and that gives me the difference in percent between initial and current pay, but it’s reversed. When it’s positive i.e. pay is above the initial value it says -X%, and when it’s below it says X%.
Is there any obvious way I’m not seeing to polarize this?
Thanks for any insight. 🙂
[-(a – b) = -a + b = b – a]
Also: