android minutes:seconds
<p>I'm looking for a solution to display   <code>minutes:seconds</code> duration from <code>1785.16 string  android device</code></p>

<p>In php its simple:</p>

<pre><code>&lt;?php
$seconds = '1785.16';
$minutes = floor($seconds/60);
$secondsleft = $seconds%60;
if($minutes&lt;10)
$minutes = "0" . $minutes;
if($secondsleft&lt;10)
 $secondsleft = "0" . $secondsleft;
echo "$minutes:$secondsleft";
?&gt;


This will display: 29:45
</code></pre>
