# Value rounding in a Numeric Text Field

**URL:** <https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [February 14, 2024, 11:08pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728 "2024-02-14T23:08:20Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 14, 2024, 11:08pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/1 "2024-02-14T23:08:20Z")

</div>

Working with a numeric Text Field. PLC is giving me a value of 255 but I need to display 25.5, but I am displaying 25. Value is being rounded. This is my settings.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/2/326aef4a43d5e8bbc758452e82bf0e02f88b16a9.png)

---

<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:** [February 14, 2024, 11:16pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/2 "2024-02-14T23:16:43Z")

</div>

You're showing the tag configuration.

Have a look in the Numeric Text Field properties in the Vision Property Editor | Data section. I suspect you have selected Number Type = Integer when it should be Float.

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 14, 2024, 11:26pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/3 "2024-02-14T23:26:41Z")

</div>

I tried float, but no change

---

<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:** [February 14, 2024, 11:33pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/4 "2024-02-14T23:33:18Z")

</div>

Have you put the tag binding on the Data | Value | Float property (rather than on the Integer property)?

(Another check is to confirm that it has scaled correctly to 25.5 in the tag browser.)

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 14, 2024, 11:36pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/5 "2024-02-14T23:36:24Z")

</div>

I tried the tag as a float, but no change,  
With the settings as  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bd4120568a086a3727aef6d3fb7462cbe8d9eea2.png)

---

<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:** [February 14, 2024, 11:45pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/6 "2024-02-14T23:45:11Z")

</div>

> [@Brad\_Niemi1](#):
>
> I tried the tag as a float ..

Not the tag, the binding on the Numeric Text Field. Read my previous post again.

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 15, 2024, 12:40am UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/7 "2024-02-15T00:40:26Z")

</div>

I tried the tag as a float, but no change,  
With the settings as  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bd4120568a086a3727aef6d3fb7462cbe8d9eea2.png)

---

<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:** [February 15, 2024, 12:46am UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/8 "2024-02-15T00:46:44Z")

</div>

In the **Vision Property Editor** for the Numeric Text Field - not the Tag Browser | Property Editor.

![Tag float](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/9/09afcf4472648457aaa1866cbca609d8c6a3fb0c.png)

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 15, 2024, 12:49am UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/9 "2024-02-15T00:49:49Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/a/aac6cff48ade03ba1a3137ab0724d151ff25118b.png)

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 15, 2024, 12:50am UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/10 "2024-02-15T00:50:30Z")

</div>

actual value is 32.7

---

<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:** [February 15, 2024, 12:54am UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/12 "2024-02-15T00:54:18Z")

</div>

OK. There's something else wrong. If your binding is correct then there's some mix-up between the data type of the tag and the property configuration. It's time for bed for me.

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 15, 2024, 12:57am UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/13 "2024-02-15T00:57:48Z")

</div>

no problem, thanks for taking a look. I will continue to look

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 15, 2024, 1:02am UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/14 "2024-02-15T01:02:27Z")

</div>

Try changing the 'Number Type' to float as well.

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 15, 2024, 1:21pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/15 "2024-02-15T13:21:27Z")

</div>

Tried that last night, still no luck

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [February 15, 2024, 1:47pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/16 "2024-02-15T13:47:26Z")

</div>

Remove any scaling and other things you've added to the tag config so we know that the tag system isn't modifying the value.

Show your binding on the numeric text field's `Value(Float)` property.

There has to be a reason why value is being rounded/truncated to an unexpected value.

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 15, 2024, 2:10pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/17 "2024-02-15T14:10:01Z")

</div>

In my Tag browser for that tag with scaling , I get  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/b/6b1959a4618eb6ca0440bceed75aa989567d4f91.png)  
Which is what I want displayed, but am getting 30.0  
If I remove the scaling in the tag with my min set at 0 and my max set at 30, i get  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/1/31f79ca88383224d657456415a13f90242e03df7.png)  
The are with the number type set as float on both tag properties and Property editor

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [February 15, 2024, 2:20pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/18 "2024-02-15T14:20:30Z")

</div>

How is your binding configured?

What I suspect might be happening is that you're value is being limited by the max you have set, just trying to figure out why.

Also, setting the tag properties to float, doesn't matter if the actual value in the controller is an integer, which I expect it is. You'll just get a `.0` added to the end of the value.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [February 15, 2024, 2:29pm UTC](https://forum.inductiveautomation.com/t/value-rounding-in-a-numeric-text-field/85728/19 "2024-02-15T14:29:03Z")

</div>

Also, rather than a tag with scaling, you might consider using a [derived tag](https://www.docs.inductiveautomation.com/docs/8.1/platform/tags/types-of-tags#derived-tags).
