title: summing up of difference in timings in json array of angularjs application is going wrong
body: <p>I have the following array of json objects and function to get total Hours count.</p>
  
  <pre><code>$scope.workingHrsList = [
    {   
      "uniqueStartTime": "4.00", //4 AM
      "uniqueEndTime": "16.45"  //4.45 PM
    },
    {   
      "uniqueStartTime": "16.45", //4.45 PM
      "uniqueEndTime": "3.15"  // 3.15 AM
    },
    {   
      "uniqueStartTime": "3.15", //3.15 AM
      "uniqueEndTime": "4.00"   // 4.00 AM
    }
  ];
  
  var toatlWorkingHrsCnt = getTotalHoursCount();    
  
   function getTotalHoursCount() {
          var totalHrs = 0.0;
          for (var i = 0; i &lt; $scope.workingHrsList .length; i++) {
              totalHrs = totalHrs + (parseFloat($scope.workingHrsList [i]["uniqueEndTime"]) - parseFloat($scope.workingHrsList [i]["uniqueStartTime"]));
              $scope.workingHrsList [i]["diffHrs"] = (parseFloat($scope.workingHrsList [i]["uniqueEndTime"]) - parseFloat($scope.workingHrsList [i]["uniqueStartTime"])) + "";
              console.log("End : " + parseFloat($scope.workingHrsList [i]["uniqueEndTime"]));
              console.log("Start : " + parseFloat($scope.workingHrsList [i]["uniqueStartTime"]));
              console.log("Row Hrs with Index " + i + "  : " + totalHrs);
          }
          console.log("Total Hours : " + totalHrs);
          return (totalHrs);
      }
  </code></pre>
  
  <p>so that I can check </p>
  
  <pre><code>if(toatlWorkingHrsCnt == "24.00" ) {
  console.log("Payable");
  } else {
  console.log("Not Payable");
  }
  </code></pre>
  
  <p>Even though manually, we can clearly see that the difference in the timings is adding up to 24hrs, but the function is not giving that result. Can any one help me to fix the issue?</p>