Request: Posible IF THEN ELSE conditions to the tags and the math round number function

For the math round, you could do something like this:

Let [tag] be the expression you are evaluating

([tag]%1>=0.5?[tag]+1-[tag]%1:[tag]-[tag]%1)

Example: 36.52

For the ternary operation:

condition ? true : false
0.52 >= 0.5 ? 36.52 + 1 - 0.52 : 36.52 - 0.52
0.52 >= 0.5 ? 36.52 + 0.48 : 36
0.52 >= 0.5 ? 37 : 36

For a more in depth round off including decimal round off, refer to my post at:

1 Like