You guys ROCK. That was it. Thanks to everyone! BZ On Monday, November 18, 2002, at 05:48 PM, fritz wrote:
<dtml-var expr="3.0/356 * 100"> results in 0.842696629213
you should have at least one _not_ integer
<hth>
fritz (-:fs)
======================================================
Am Montag, 18. November 2002 23:17 erhalten:
I have two integers "clicks" and "views" and am trying to find what the ratio of clicks to views. This should be (and is on my calculator)
clicks / views * 100 (to get the percent) 3 / 356 * 100 = .842 %
<dtml-var expr="clicks/views"> Returns = 0
<dtml-var expr="clicks/views" fmt="%.6f"> Returns 0.00000
I don't know what is wrong. Anyone?
BZ
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )