1 |
- function i(c,n){let a,e,t;try{a=c.toString().split(".")[1].length}catch{a=0}try{e=n.toString().split(".")[1].length}catch{e=0}return t=Math.pow(10,Math.max(a,e)),(c*t+n*t)/t}function o(c,n){let a,e,t;try{e=c.toString().split(".")[1].length}catch{e=0}try{t=n.toString().split(".")[1].length}catch{t=0}a=Math.pow(10,Math.max(e,t));const r=e>=t?e:t;return Number(((c*a-n*a)/a).toFixed(r))}export{i as a,o as b};
|