How can we convert a JavaScript string variable to decimal?
Is there a function such as:
parseInt(document.getElementById(amtid4).innerHTML)
This works:
var num = parseFloat(document.getElementById(amtid4).innerHTML, 10).toFixed(2);