math functions usable in rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
angelosub
Normal user
Posts: 10
Joined: 26 Jan 2017, 12:59
Location: Italy

math functions usable in rules

#1 Post by angelosub » 04 May 2020, 03:06

What mathematical functions can be used on rules or in formulas? Log, Cos, Sin it's possible use?
In my particular case I have a necessity to make a log10 of the value read from a sensor.
I have tried Log([test#a]) log([test#a]) log10([test#a]) lg([test#a]) nothing work

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: math functions usable in rules

#2 Post by ThomasB » 04 May 2020, 04:19

Misc.ino shows that these operators are allowed in expressions:

Code: Select all

+
-
*
/
^
%
- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 55 guests