How can we convert a JavaScript string variable to decimal?
Is there a function such as:
parseInt(document.getElementById(amtid4).innerHTML)
You can also use the Number constructor/function (no need for a radix and usable for both integers and floats):
Number
Number('09'); /=> 9 Number('09.0987'); /=> 9.0987
Alternatively like Andy E said in the comments you can use + for conversion
+
+'09'; /=> 9 +'09.0987'; /=> 9.0987