In my html page I have the div below and am doing some formatting
        <div class="diffhrs">
              <span class="lbl">Hours Left: </span>
              <span class="data">@String.Format("{0:0.0#}", Model.DiffHours)</span>
        </div>
When I look at the html rendered I get this. Note that it is 3.0
        <span class="data">3.0</span>
I have the line of code below in the click event of a button, same page. when I try to read the text in the div below I get 3.03 back.
        var ProductionHoursEntered = parseFloat($('div.diffhrs .data').text());
Do you know what is happening? where is the .03 coming from?
var ProductionHoursEntered = parseFloat($('div.diffhrs .data').text());
console.log(ProductionHoursEntered);<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="diffhrs">
  <span class="lbl">Hours Left: </span>
  <span class="data">@String.Format("{0:0.0#}", Model.DiffHours)</span>
</div> 
     
    