+1 vote
83 views
asked in java script by

Hi All

  How to remove comma (amount Precision) from number which comes dynamically in JavaScript ?

1 Answer

0 votes
answered by (8.2k points)
Hi

  Try the below piece code

          var selectedAmount = '10,00.0'
            selectedAmount = selectedAmount.replace(/\,/g,'');
            selectedAmount = Number(selectedAmount);

Categories

...