<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:10pt"><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">&gt; tp&gt; Here is my solution for fun:<br>&gt;tp&gt; perl -e '$t=13.32; $t =~ s/(\d+)(\.\d+)/$1.":". (int $2*60 +
 .5&lt;10?"0":"").int $2*60 + .5/e; print "$t\n"'<br><br>&gt;I think this is a little cleaner as a one-liner and will work with <br>&gt;$t = .32 for example:<br><br>&gt; perl -e'$t = 13.32; printf "%d:%d\n", $t, ($t*60)%60;'<br>There is a small bug:<br>-&gt; perl -e'$t = 13.02; printf "%d:%d\n", $t, ($t*60)%60;'<br>
13:1<br><br>Ted<br>_______________________________________________<br>Chicago-talk mailing list<br><a ymailto="mailto:Chicago-talk@pm.org" href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></div><br><br></div></div></body></html>