title: float representing hours to hours:minutes:seconds using c#
body: <p>I need to convert a float representing hours to Hours:Minutes:Seconds.</p>
  
  <p>How is that possible by using C#.</p>
  
  <p>Currently i am converting this 5.4898391027272906 float hour to Hours minutes and seconds, i got a desire results for only till hours and minutes but not for seconds.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>double time = 5.4898391027272906;
  double hours = Math.Floor(time);
  double minutes = Math.Floor(time * 60 % 60);
  double seconds = Math.Floor(time * 360 % 360);
  </code></pre>
  
  <blockquote>
    <p>Result: hours = 5, minutes = 29 and seconds = 176</p>
  </blockquote>
  
  <p>but i want to get a seconds in between 60 seconds.</p>