Advertisement
haroldjfks

Untitled

Jan 3rd, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function formatCurrencyc(price, currencyFormat, currencySign, currencyBlank)
  2. {
  3. blank = '';
  4. price = parseFloat(price.toFixed(6));
  5. //change here
  6. price = price * .020;
  7. //
  8. price = ps_round(price, priceDisplayPrecision);
  9. if (currencyBlank > 0)
  10. blank = ' ';
  11. if (currencyFormat == 1)
  12. return currencySign + blank + formatNumber(price, priceDisplayPrecision, ',', '.');
  13. if (currencyFormat == 2)
  14. return (formatNumber(price, priceDisplayPrecision, ' ', ',') + blank + currencySign);
  15. if (currencyFormat == 3)
  16. return (currencySign + blank + formatNumber(price, priceDisplayPrecision, '.', ','));
  17. if (currencyFormat == 4)
  18. return (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign);
  19. return price;
  20. }
  21.  
  22. it should return the correct xxxx,xx price increased by 2% but doesn't...while without the added part it's ok
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement