# How to round values as in designer

**URL:** <https://forum.inductiveautomation.com/t/how-to-round-values-as-in-designer/106177>\
**Category:** Ignition\
**Tags:** opcua, ignition81\
**Created:** [May 13, 2025, 9:46am UTC](https://forum.inductiveautomation.com/t/how-to-round-values-as-in-designer/106177 "2025-05-13T09:46:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.parola](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@andrea.parola](https://forum.inductiveautomation.com/u/andrea.parola)\
**Post date:** [May 13, 2025, 9:46am UTC](https://forum.inductiveautomation.com/t/how-to-round-values-as-in-designer/106177/1 "2025-05-13T09:46:19Z")

</div>

Hello,

I am reading an array of float from a PLC using OPC-UA  
with the value that are integers it works fine, but looking at decimal values I have the following  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/8/a8316f9e4872905a0aeda1ae7de2bbb13190869a.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/6/a6d7f3029648389758dafe2e7ac11ac1c2170256.png)

so basically the value 28.35 has other digits, but on the designer I just see 28.35, same for 1.2.

if I read the value on a script, I read 28.350000381 and not 28.35

How can Ignition get the right value and show it in the designer UI?  
Is there a way to do it also to read values on a script?

thank you  
Andrea

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 13, 2025, 9:58am UTC](https://forum.inductiveautomation.com/t/how-to-round-values-as-in-designer/106177/2 "2025-05-13T09:58:30Z")

</div>

Related: [Ignition MQTT rounding floating point numbers with incoming transmissions](https://forum.inductiveautomation.com/t/ignition-mqtt-rounding-floating-point-numbers-with-incoming-transmissions/94070).

> How can Ignition get the right value...

After reading the linked thread, which do you regard as the "right" value?

---

<div class="post-metadata">

**Author:** ![andrea.parola](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@andrea.parola](https://forum.inductiveautomation.com/u/andrea.parola)\
**Post date:** [May 13, 2025, 10:49am UTC](https://forum.inductiveautomation.com/t/how-to-round-values-as-in-designer/106177/3 "2025-05-13T10:49:03Z")

</div>

the correct one is the one displayed in the UI, where I think Ignition applies some sort of rounding

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 13, 2025, 11:09am UTC](https://forum.inductiveautomation.com/t/how-to-round-values-as-in-designer/106177/4 "2025-05-13T11:09:29Z")

</div>

Did you read that topic @Transistor posted? Doesn't sound like it. It explains exactly what you're seeing and why.

The answer is to format the display of your values with the precision you need, for example using the `numberFormat` expression function
