Reducing Real Tag format

Hello,

I have some real tags that I need to illustrate on the HMI. These are global data block “real” on my PLC, and transferred as an OPC tag into Ignition, displayed on a basic textbox:

These appear in the tag browser as one number, but when I click on the tag itself, it actually shows a much longer string of numbers like the textbox. How can I make the textbox reflect the reduced value in the tree?

Use a Numeric Text Field component and modify its Decimal Format property if the default is not suitable.

2 Likes

For future reference, this is "rounding", not "reducing". Due to the quirks of binary numbers in floating point, this is almost always required at the point of display.

1 Like