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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:31:54
Script start
Timing: Jan 31 2025 04:31:54
Module start 'layout'
Timing: Jan 31 2025 04:31:54
Module start 'content'
Timing: Jan 31 2025 04:31:55
Module end 'content'
Timing: Jan 31 2025 04:31:55
Script end

Main resources:

Total runtime0.8808 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 588.2656151.2266
Module start 'layout' 0.00400.0020 739.492236.6797
Module start 'content' 0.00600.8739 776.1719935.6172
Module end 'content' 0.87990.0008 1,711.789111.8125
Script end 0.8807  1,723.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.3091160.0002
Check MTime0.00120.1383160.0001
Mysql Total
Database connection0.00060.070310.0006
Mysqli_queries0.836895.0043570.0147
Looping result0.00040.0410550.0000
Template Total0.855897.220.4279
Template load0.00180.199820.0009
Template processing0.854096.961020.4270
Template load and register function0.00120.139110.0012
states
state_id_array0.00080.092010.0008
state_identifier_array0.00060.069520.0003
Override
Cache load0.00140.1609170.0001
Sytem overhead
Fetch class attribute can translate value0.00040.048820.0002
Fetch class attribute name0.00170.189850.0003
XML
Image XML parsing0.00200.221720.0010
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00220.2550210.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs