What does float convert it to ? a single digit or 4 or the whole value ?
Same exact question for int.
can < = > also be used to say how much increase afther the . ?
Full disclosure what i am trying to do:
greate different triggers on a vallue that changes regulary by tiny margins.
say:
2000.20 changes to 2000.18 or 2000.22 no acction but when it changes to 2000.80 or 1999.70 it triggers.
This is for referance I understand there are manyways to do it this is why i am asking for a breakdown instead of just a sollution so i can understand and next time implent it differently or elsewhere
Nope. The number in the brackets is not a rounding factor. It is the default value that will be substituted if the string can not be converted to a number. e.g.
they compare whether the value before is either less than (<), equal to (=) or greater than (>) the value that comes after the operator. they only return values of true or false.
if you want to calculate a deviation away from the test value then you will need to do some math on the right hand side of the operator to accomplish that.
ex
value_1 = 2000.2
value_2 = 2000.8
value_2 > (value_1 + 0.5) it will be true (2000.8 is greater than 2000.7)
value_2 = 2000.7
value_2 > (value_1 + 0.5) it will be false (2000.7 is equal to - but not greater than - 2000.7)
if that doesn’t answer the question then maybe ask the question in a different way to clarify.