我正在尝试使用angularJS计算前端的汽车贷款每月付款额。我的计算结果如下,我没有得到正确的金额,结果返回4
$scope.model.autoLoan.borrowAmount = 15000
$scope.model.autoLoan.interestRate = 3.25
$scope.model.autoLoan.loanLength = 60
var monthlyPayment = $scope.model.autoLoan.borrowAmount *
(($scope.model.autoLoan.interestRate / 12) *
(Math.pow((1 + ($scope.model.autoLoan.interestRate / 12)), $scope.model.autoLoan.loanLength))) /
(Math.pow((1 + ($scope.model.autoLoan.interestRate / 12)), $scope.model.autoLoan.loanLength) - 1);
console.log(monthlyPayment);
控制台返回:4062.502309286213,它应该重新运行类似47.00的内容。不知道我在做什么错。