Revision as of 13:44, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search


Action used to perform calculation operations on different actors and stores result in target.
If calculations with trigonometric functions give the wrong results, please note that the trigonometric variables input is expressed in radians, not degrees
By default, the format of calculation result on GnEditText is set to 0.00.
If the result needs to be formatted differently, check attribute gn:s_decimalFormat on GnEditText
Action returns

Action signatures

Calculate result into target widget

Parameter Description
target target from where the while action is using value as expression parameter
calculationFormula represents formula to be calculated
WidgetId’s, String resources or ginstr app variables can be used to replace variable placeholders in the equation,
i.e. 3*sin(@+id/widgetId)-2(@+variable/varId-2).
All values in actors should be numeric or they will be ignored in calculation
Actors that can be used as calculation variables:
  • string resources


@variable/myResultVar - target where the calculation result will be stored
@+id/widgetOne*@variable/calcVarOne - calculation formula