From 5a28e41a3105338f747b8a30f67000920490c67d Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Fri, 6 Jul 2018 10:38:38 +0530 Subject: make string as the default type --- js/Electrical/NPN.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'js/Electrical/NPN.js') diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js index b54740fa..e8f8d167 100644 --- a/js/Electrical/NPN.js +++ b/js/Electrical/NPN.js @@ -75,23 +75,23 @@ function NPN() { return options; } NPN.prototype.set = function NPN() { - this.Bf = parseFloat((arguments[0]["Bf"])) - this.Br = parseFloat((arguments[0]["Br"])) - this.Is = parseFloat((arguments[0]["Is"])) - this.Vak = parseFloat((arguments[0]["Vak"])) - this.Tauf = parseFloat((arguments[0]["Tauf"])) - this.Taur = parseFloat((arguments[0]["Taur"])) - this.Ccs = parseFloat((arguments[0]["Ccs"])) - this.Cje = parseFloat((arguments[0]["Cje"])) - this.Cjc = parseFloat((arguments[0]["Cjc"])) - this.Phie = parseFloat((arguments[0]["Phie"])) - this.Me = parseFloat((arguments[0]["Me"])) - this.Phic = parseFloat((arguments[0]["Phic"])) - this.Mc = parseFloat((arguments[0]["Mc"])) - this.Gbc = parseFloat((arguments[0]["Gbc"])) - this.Gbe = parseFloat((arguments[0]["Gbe"])) - this.Vt = parseFloat((arguments[0]["Vt"])) - this.EMinMax = parseFloat((arguments[0]["EMinMax"])) + this.Bf = arguments[0]["Bf"] + this.Br = arguments[0]["Br"] + this.Is = arguments[0]["Is"] + this.Vak = arguments[0]["Vak"] + this.Tauf = arguments[0]["Tauf"] + this.Taur = arguments[0]["Taur"] + this.Ccs = arguments[0]["Ccs"] + this.Cje = arguments[0]["Cje"] + this.Cjc = arguments[0]["Cjc"] + this.Phie = arguments[0]["Phie"] + this.Me = arguments[0]["Me"] + this.Phic = arguments[0]["Phic"] + this.Mc = arguments[0]["Mc"] + this.Gbc = arguments[0]["Gbc"] + this.Gbe = arguments[0]["Gbe"] + this.Vt = arguments[0]["Vt"] + this.EMinMax = arguments[0]["EMinMax"] this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; -- cgit