Iの値を計算し、変数値で合計を除算しています(9)例.FOR:数学エラー
$scope.wald_costs = Math.round(1000 + 500 + 4500 + 45000 + 27000/9)
は$scope.wald_costs = 8666
あると仮定なり
$scope.wald_costs = Math.round($scope.logistics_costs + $scope.refurbishment_costs + $scope.insurance_costs + $scope.priceful + $scope.t/$scope.$scope.sharable_with)
しかし<b>{{wald_costs}}</b>
を印刷すると、適切な出力が得られません。私は出力に入る代わりに何 この6000450003375
$scope.t = 27000
$scope.logistics_costs = 1000
$scope.refurbishment_costs = 500
$scope.insurance_costs = 4500
$scope.priceful = 45000
$scope.sharable_with = 9
$scope.wald_costs = Math.round(($scope.logistics_costs + $scope.refurbishment_costs + $scope.insurance_costs + $scope.priceful + $scope.t/$scope.$scope.sharable_with))
どのように私はこの問題を解決することができますようなものですか?
を試してみてください。 – Yoshi
typoか、 '$ scope.t'だけを' $ scope.sharable_with'で分割していますか? – rpadovani