Formulas

Formulas use the values of numeric Entries.

CardEnable Formula

Basic Formula

Operator Precedence

Formulas follow arithmetic rules: 1 + 2 × 3 = 7

Exponentiation is right associative: 2 ^ 2 ^ 3 = 256

Nested Cards are like parentheses

Deeper Cards compute before their parent(s).

Hypotenuse = (a2 + b2)½

Nested Card in Formula

Nested Card Operator

Nested Cards have an operator unless they are the first Formula item.

Spring Work Math Formula
Nested Card Formula Operator

Rounding

Rounding Half Up

Presets

CardFormula Presets

To remove a preset, re-click the active preset button.

Formula Presets

Alternatives to Formulas

The next document is about integrating JavaScript. Therefore, you can also write formulas like:

Formula with JavaScript
function ({ radius }) {
  return Math.PI * radius.value ** 2
}
Next JavaScript  ️⇾