[Zope] round and len in DTML

hans hans@beehive.de
Wed, 10 Apr 2002 18:39:57 +0100


dorian santner wrote:

> <dtml-let percentage="duration/(planAffort)">
>
> works fine with a given duration and planAffort (yes i checked planAffort<>0),
>
> why cant i set
> <dtml-let percentage="round((duration/(planAffort)),2)">
>
> or
> <dtml-let mylength="len(anyVariable)">

as for random, never used it; len is accessed via the dtml-namespace "_"
so
<dtml-let mylength="_.len(anyVariable)">

hans
-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin  (software developer)           hans@beehive.de
beehive elektronische medien GmbH       http://www.beehive.de
phone: +49 30 847-82 0                  fax: +49 30 847-82 299