operations on xml results returning 0
<p>I was having trouble with my main page so I made a test page to find the problem. I'm grabbing hours played on games through an XML and any games that are played more than .1 but less than 1 hour I am trying to multiply by 60.</p>

<p>It it catching the numbers but it is returning 0 for them. Anything greater than 1 isn't going through the if as it is supposed to. </p>

<p>Why isn't it correctly doing the operation? How can I fix this?
    

<pre><code>$games = $gamespage-&gt;games;
$hoursplayed = 0;

    foreach($games-&gt;game as $game)
    {
    $hoursplayed = $game-&gt;hoursOnRecord;
    if ($hoursplayed &lt; 1 &amp;&amp; $hoursplayed &gt;= .1) {
    $hoursplayed = $hoursplayed * 60; }
    echo $game-&gt;name, "&lt;br /&gt;";
    echo $hoursplayed, "&lt;br /&gt;&lt;br /&gt;";
    } 
</code></pre>
