I am calculating the values and dividing the total by variable value (9).for example:
$scope.wald_costs = Math.round($scope.logistics_costs + $scope.refurbishment_costs + $scope.insurance_costs + $scope.priceful + $scope.t / $scope.$scope.sharable_with)
which will be
$scope.wald_costs = Math.round(1000 + 500 + 4500 + 45000 + 27000 / 9)
suppose to be $scope.wald_costs = 8666
but i am not getting the proper output when i print <b>{{wald_costs}}</b>.
Instead what i get in output is like this 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))
how can i solve this?
8666then you need to add some parenthesis.$scope.tby$scope.sharable_with?