Transaction Group Round Float Value

MMaynard
Fri, 11 Mar 2022 20:14:03 +0000
Ignition

Hey all,
Having a hell of a time with this.
No matter what I do to an OPC Float tag in a transaction group I can not get it to round the decimal places to 2.
I have tried the following:
Formatted the tag on the tag itself with “#.#”, “#.00”, “0.00”
Created an expression tag in the transaction group using numberFormat({Tag},"#.00") (and variations of the above formats)
Created an expression tag in the transaction group using round({Tag},2) (and variations of the above formats)
Created an actual expression tag in the tag folder trying all of the above different formats.

The value will still get written to the database with more decimals than wanted.
Created a derived tag in the tag folder utilizing round, numberFormat, etc.

Nothing is working.
Any ideas?

12 posts - 7 participants