JAVA中怎样实现小数相加_真正的小数相加的方法
function add(arg1, arg2) {var r1, r2, mtry {r1 = arg1.toString().split('.')[1].length} catch (e) {r1 = 0}try {r2 = arg2.toString().split('.')[1].length} catch (e) {r2 = 0}let b = Math.pow(10, Math.max...