se 'g': mult = 1e9; break;
                }
                if (mult != 1)
                        s = s.substring(0, len-1).trim();
		return s * mult;
}

function calc() {
    var fwd = document.getElementById("forward").value.trim();
    var cur = document.getElementById("current").value.trim();
    var rev = document.getElementById("reverse").value.trim();
    var modelname = document.getElementById("modelname").value.trim();
    modelname = modelname.replace(" ", "");
    var vt = 0.025865;
    fwd = c