const add = (arg1 = '', arg2 = '') => { 
  arg1 = arg1.toString();
  arg2 = arg2.toString();
  let r1,r2,m;
  if (arg1.indexOf('.') > -1) {
    r1 = arg1.split(".")[1].length;
  } else {
    r1 = 0;
  }
  if (arg2.indexOf('.') > -1) {
    r2 = arg2.split(".")[1].length;
  } else {
    r2 = 0;
  } 
  m = Math.pow(10,Math.max(r1,r2)); 
  return (arg1*m+arg2*m)/m; 
}

export default {
 add,
}