The following function works for most numbers, but if it is something such as .0175, then I get 1.75000000000%. How can i get it to only give me back
1.75%
function formatPercentage(num)
{
num = num.toString().replace(/\%|\,/g, '');
if (isNaN(num))
num = "0";
num = num * 100;
return (num + ' %');
}
...
Go to the complete details ...