![]() |
Page History
Scrollbar | ||
---|---|---|
|
...
Evaluate Mathematical Expressions with the Number-data and Eval-data Macros
...
This page provides the information on the eval-data macro from the Atlassian site.
Table of Contents | ||
---|---|---|
|
The eval-data macro allows evaluation of mathematical expressions using data in number-data macros.
Basic Mathematics
The following calculates the value of a fraction, initially 1/2.
...
Result:
Evaluate Data | ||||||
---|---|---|---|---|---|---|
| ||||||
${Numerator}/${Denominator} |
Percentage:
Evaluate Data | ||||||
---|---|---|---|---|---|---|
| ||||||
round(${Result} * 100, 0) |
Evaluating Data in Tables
In the Editview, the text-data and number-data macros present a plus sign with the table. Clicking the plus sign opens the table to accept names of variables and values for them. The eval-data macros calculate the sum and the average.
...
Table Data | ||||
---|---|---|---|---|
| ||||
|
Sum:
Evaluate Data | ||||
---|---|---|---|---|
| ||||
sumtable("Values", "Value") |
Average:
Evaluate Data | ||||
---|---|---|---|---|
| ||||
avgtable("Values", "Value") |
...