math functions with floor
<p>This bit of code:</p>

<pre><code>$hour = 2.2;
    if (floor($hour) &gt; 1) {
        $str = $str . floor($hour) . " hours";
    }
    else if (floor($hour) === 1) {
        $str = $str . floor($hour) . " hour";
    }
echo $str;
</code></pre>

<p>Will output: <code>2 hours</code></p>

<p>However, this bit:</p>

<pre><code>$hour = 1.2;
    if (floor($hour) &gt; 1) {
        $str = $str . floor($hour) . " hours, ";
    }
    else if (floor($hour) === 1) {
        $str = $str . floor($hour) . " hour ";
}
echo $str;
</code></pre>

<p>Will <strong>not</strong> output <code>1 hour</code>, because the condition for the <code>else if</code> does not match for some reason. Why is that?</p>
