Forums / Setup & design / I want to calculate, but I don?t know how ??

I want to calculate, but I don?t know how ??

Author Message

Ralf Lohmann

Tuesday 27 April 2004 4:51:40 am

I wan?t calculate the following formula (5000/5)*360 (for example)

{let a=$node.object.data_map.forderungen.data_int b=$node.object.data_map.monate.data_int}
{div($a, $b )}
{/let}

How can I multiply by 360 ??

Greatings from Germany
RLO

iddis GmbH
Gesellschaft für geteiltes Wissen
Society for shared knowledge
Falkstr. 73-77
47058 Duisburg
Germany

Ralf Lohmann

Tuesday 27 April 2004 6:19:41 am

i got it!

{let a=$node.object.data_map.forderungen.data_int b=$node.object.data_map.umsatz.data_int c=360 d=$a|div( $b )}
{mul( $c, $d )}
{/let}

iddis GmbH
Gesellschaft für geteiltes Wissen
Society for shared knowledge
Falkstr. 73-77
47058 Duisburg
Germany

Mark Marsiglio

Wednesday 28 April 2004 7:19:19 pm

This section of the docs (kind of hard to find) has some more details on the mathematical functions and some examples.

http://www.ez.no/ez_publish/documentation/reference/template_operators/mathematics

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions