Lemur Monitors Lemur Mouse User Manual


 
Parser Reference
90
max(0.1, 0.8) = 0.8
min(a,b) : min of a and b
min(0.1, 0.8) = 0.1
pow(a,b) : a at the power of b
pow(2,4) = 16
round(a) : rounded value to the closest integer
round(1.2) = 1
round(1.8) = 2
sign(a) : -1 if a<0, +1 if a>=0
sign(-12) = -1
sign(0) = +1
sign(12) = +1
sqrt(a) : square root of a
sqrt(64) = 8
operators : -a, a%b, a*b, a+b, a-b, a/b, a^b
note : a^b = pow(a, b)
5.1.8.2.
Logic
When using logic and conditions in the parser, (not 0) is true and 0 is false.
!a : not a
1 when a = 0
0 when a!=0
a!=b
1 if a!=b (i.e a=2, b=4)
0 if a==b
a&&b : logical OR
1 && 1 = 1