title: How to system know that one over of cricket has 6 balls (Calculation) in Android
body: <p>I'm developing a cricket app and I'm getting problems when I'm working with overs. We all know that whatever calculation is done in calculator is done with 10. </p>
  
  <p>For example : </p>
  
  <p>If there are total overs : 20, and current over 2.1
  And I want to calculate remaining overs.</p>
  
  <p>So the formula would be : (total overs - current overs)</p>
  
  <p>The answer should be  17.5</p>
  
  <p>But I'm getting the answer as 17.9</p>
  
  <p>Same thing occurrs in run rate and required run rate.</p>
  
  <p>What I'm actually doing wrong?? Anyone has some algorithm or formula or any code that can convert convert overs like this.</p>
  
  <p>Thanks.</p>