I have two currency fields in Forms with thousands delimiter set. I am using below java script to calculate the percentage of change between those 2 amounts. It gives as NaN. How do I use javascript to calculate the percentage correctly?
var num1 = $('.payrate input').val();
var num2 = $('.currentsalary input').val();
var result = (num1) - (num2);
result = result / num2;
result = round(result);
Thanks
Priya