[Zope] Going CRAZY from division

BZ bz@bwanazulia.com
Mon, 18 Nov 2002 17:17:18 -0500 (EST)


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