Powershell -lt and -gt giving opposite of expected results : <p>In the below code, if I add a where-object,  -lt &amp; -gt are giving opposite of expected results. </p>

<p>I'm sure the reason is I'm stupid, but in what specific way am I messing up? </p>

<p>This part gives the expected results, where in my case, the single drive has %Free of 39.8</p>

<pre><code>Get-WmiObject -Namespace root\cimv2 -Class win32_logicaldisk | where-object -Property drivetype -eq 3 | 
format-table deviceid,
@{n='GB Capacity';e={$_.size/1gb}},
@{n='GB Free';e={$_.freespace/1gb}},
@{n='%Free';e={($_.freespace/$_.size)*100}}
</code></pre>

<p>But adding this</p>

<pre><code>| where {$_.'%Free' -gt 10}
</code></pre>

<p>Results in no output.  In fact </p>

<pre><code>| where {$_.'%Free' -gt 0}
</code></pre>

<p>Produces no results.  Instead I have to use</p>

<pre><code>| where {$_.'%Free' -lt 0}
</code></pre>

<p>Powershell thinks %Free is a negative number, I guess? </p>
