Calculator

ComponentTypeDescription
imgCalculatorπŸ”€ actionperform calculations including statistical functions

The calculator component allows you to perform calculations and functions. There are two calculation modes.

Basic calculation#

In basic calculation mode, you can use a combination of numbers, operators and placeholders to create a formula.

img

The operators you can use in the basic calculation mode are:

  • β€œ+” to sum e.g. 2+2 = 4
  • β€œ-” to subtract e.g. 4-2 = 2
  • β€œ*” to multiply e.g. 22 = 4
  • β€œ/” to divide e.g. 4/2 = 2
  • β€œ^” to power e.g. 2^2 = 4
  • β€œ(β€œ and β€œ)” to place brackets e.g. (2+2)/4 = 1

Function#

In the function mode, you can select from a menu of various functions and use a combination of numbers and placeholders to perform these functions.

img

The function mode works on a set of values which can be number placeholders or numbers. To manually enter numbers into the value set, type the number and press enter.

img

The following functions can be applied to the value set:

  • β€œSum” adds all numbers and placeholders entered
  • β€œAverage” finds the average/mean of all numbers and placeholders entered
  • β€œMode” finds the value that appears most often in set of values entered
  • β€œStandard deviationβ€œ returns the standard deviation of the set of values entered
  • β€œRange” finds the numerical range of the set of values entered
  • β€œMinimum value” will return the smallest of the set of values entered
  • β€œMaximum value” will return the largest of the set of values entered

Datetime calculations#

You can also perform calculations on datetime values such as adding time to a datetime value, or finding the difference between two datetime values.

Difference between two datetime values#

This function returns the time difference between two datetime values in the selected unit e.g. difference between 12 August 2021 and 14 August 2021 in days = 2 days.

img

Add/subtract datetime values#

This function can add or subtract a time value from an existing datetime value e.g. add 7 days to 12 August 2021 = 19 August 2021. It will return a datetime placeholder in the datetime format selected.

img

Adjusting decimal places#

You can set the rounding of the calculation answer at the bottom of each calculation block. The default value is to round all calculations to 2 decimal places.

img