javascript - Rounded result, how to make proper operations in Angular? -


i getting kind of rounded result of operation:

$scope.pay_holiday_days = (parseint($scope.reached_holiday_days) + pending_holiday_days) * $scope.daily_base_salary; 

supposing have (333.33)*15 = (the result should be: 4 999.95)

but insted of result of (5000), closed.

not using tofixed or similar function, , in console apppears same number (5000)


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -