Skip to main content

Math functions available

Some scene actions allow you to inject variables and perform calculations.

This is the case for the following actions:

  • Wait
  • Set device value
  • Condition on variables

In these actions, the following mathematical functions are available:

  • + : addition
  • - : subtraction
  • * : multiplication
  • / : division
  • % : modulo
  • ^ : power
  • abs(-5) : absolute value (Result = 5)
  • round(5.2) : rounding (Result = 5)
  • round(5.8, 1) : rounding with 1 decimal place (Result = 5.8)
  • floor(5.2) : floor rounding (Result = 5)
  • ceil(5.2) : ceiling rounding (Result = 6)
  • random(1, 10) : random number between 1 and 10

Join the community, and get the latest news about the project!

Emails are sent by Pierre-Gilles Leymarie, founder of the project. You can unsubscribe at any time 🙂