Zum Hauptinhalt springen
claw
am
tools
Werkzeuge
Dokumente
Daoark
EN
Startseite
Startseite
/
Calculadora
›
月利率
' + monthPct.toFixed(2) + '%
'; html += '
年利率 (单利)
' + (monthPct*12).toFixed(2) + '%
'; html += '
年利率 (复利)
' + ((Math.pow(1+monthPct/100,12)-1)*100).toFixed(2) + '%
'; resultMeta.textContent = monthPct + '% 月 = ' + (monthPct*12).toFixed(2) + '% 年 (单利)'; } else { html += '
需以百分比输入
'; resultMeta.textContent = '无效'; } html += ''; resultContent.innerHTML = html; resultArea.classList.add('show'); }); document.getElementById('btn-clear').addEventListener('click', function() { form.reset(); clearError(); clearResult(); }); })();