I assume that these values come from a text box of some sort (via ng-model). If so, the easiest way to fix this would be to set a type='number'
on them and angular will take care of the rest!
<input ng-model="objData.pendingCount" type="number" />
...
The alternative is to simply prefix + to force a number conversion, like so
<span ng-bind="((+objData.pendingCount + +objData.refundCount)/ objData.saleCount * 100).toFixed(2)"></span>
Why you CANNOT use Number(...) to make a string a number in an Angular expression
Using Number
to convert the string to a number will not work directly because (from https://docs.angularjs.org/guide/expression)
Context: JavaScript expressions are evaluated against the global
window. In Angular, expressions are evaluated against a scope object.
So if you need to use Number
you can do something like
$scope.Number = $window.Number;
in your controller before you use it in your expression. The same goes for other global window properties.