use of operators( >,<,==,!=) in ng-class
<p>I want to use Operators to check if value is greater or equal to other number or variable in ng-class, and then apply a style class accordingly. Basically i want to color the div based on their prob.</p>

<p>Is the usage of ng-class correct?
It prints the value of</p>

<pre><code>{{1-apStats.preMappedProbability.toFixed(3)}} 
</code></pre>

<p>but the ng-class tag doesn't work. Any reasons?</p>

<pre><code> &lt;div ng-class="(1-apStats.preMappedProbability.toFixed(3) &gt;=0.5) ? 'yellowClass':'redClass'"&gt; {{1-apStats.preMappedProbability.toFixed(3)}} &lt;/div&gt;
</code></pre>

<p>What am I doing wrong.? Thank you</p>