title: BigDecimal comparsion in Apache Velocity
body: <p>I have a checkbox that should be checked if some <code>BigDecimal</code> value is greater that zero. I tried this:</p>
  
  <pre><code>&lt;input title="$i18n.tr('foo')" type="checkbox" name="foo.bar" id="foobar"
  #if($foo.bar &amp;&amp; $foo.bar.doubleValue() &gt; 0)checked#end/&gt;
  </code></pre>
  
  <p>(<code>foo</code> is a POJO and <code>bar</code> is <code>BigDecimal</code> field)</p>
  
  <p>But no matter what stores in <code>bar</code>, checkbox is always unchecked. I tried to add <code>onclick</code> event in order to debug it:</p>
  
  <pre><code>onclick="alert('$foo.bar.doubleValue()');"
  </code></pre>
  
  <p>And here I can see that bar's value is OK, e.g. <code>15.0</code>, so it's not a value's problem.</p>
  
  <p>How to compare <code>BigDecimal</code> with another number in Velocity's template?</p>