parseFloat(b,10) code example
Example: parsefloat jquery
var subtotal = parseFloat(val) + parseFloat(tax) + parseFloat(imp) + parseFloat(env);
var subtotal = subtotal.toFixed(2); //two decimal places
var subtotal = parseFloat(val) + parseFloat(tax) + parseFloat(imp) + parseFloat(env);
var subtotal = subtotal.toFixed(2); //two decimal places