EMS-ESP32
EMS-ESP32 copied to clipboard
feature: extending Scheduler with functions
Discussed in https://github.com/emsesp/EMS-ESP32/discussions/2111
Originally posted by SoftVienka October 19, 2024 Hello Is it possible to use the round() function in the scheduler?
Write entity RAM float (17.25) to entity RAM as int (17)
example: Command: custom/interval Value: (x > 2 && x < 10) ? custom/interval_1 : custom/interval
interval_1 is a float and I want it to be stored as an int into interval
when I write round(custom/interval1) then npr: round17.25 is written into the interval
Michael added the functions int, round, abs, log, exp, sqrt and pow in 3.7.0-dev.48