# Numeric Text Field Rounding

**URL:** <https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596>\
**Category:** Ignition\
**Tags:** ignition80, vision\
**Created:** [November 16, 2022, 6:39pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596 "2022-11-16T18:39:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachary\_larick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zachary_larick/32/40740_2.png) [@zachary\_larick](https://forum.inductiveautomation.com/u/zachary_larick)\
**Post date:** [November 16, 2022, 6:39pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596/1 "2022-11-16T18:39:21Z")

</div>

![Numeric Label Tag Value](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5e870cf4c268a305304cb4657f69a15ee3f2b130.png)  
 ![Decimal format](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/d/3dfd6b0f2cfc79ca970e4cf4090f54ac93bfb151.png)  
 ![Numeric Text field Tag Value](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/b/8bce382348d4f823bda63eab1d7f9732ec450ca9.png)

I'm attempting to tie a Numeric text field to a tag, but it is rounding in ways that it shouldn't given the decimal format. If i link the tag to a Numeric Label to this it shows the proper value of 11.86, which it rounds to 11.9. but the Numeric Text field goes straight to 12.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 16, 2022, 6:45pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596/2 "2022-11-16T18:45:24Z")

</div>

Change the decimal format to zeros to match the number of decimal places that you want, IE this will always show 2 decimal places.

```nohighlight
#,##0.00 

```

---

<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:** [November 16, 2022, 8:17pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596/3 "2022-11-16T20:17:11Z")

</div>

Also, what's the "value mode" or whatever the property name is, of the text field? Make sure it's float or double.

---

<div class="post-metadata">

**Author:** ![zachary\_larick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zachary_larick/32/40740_2.png) [@zachary\_larick](https://forum.inductiveautomation.com/u/zachary_larick)\
**Post date:** [November 17, 2022, 12:22pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596/4 "2022-11-17T12:22:57Z")

</div>

Doing this just makes it show as 12.00.

---

<div class="post-metadata">

**Author:** ![zachary\_larick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zachary_larick/32/40740_2.png) [@zachary\_larick](https://forum.inductiveautomation.com/u/zachary_larick)\
**Post date:** [November 17, 2022, 12:24pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596/5 "2022-11-17T12:24:04Z")

</div>

The Tag I am trying to get the Text field to show is also a float, hence why i linked it to the Float Value.

---

<div class="post-metadata">

**Author:** ![zachary\_larick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zachary_larick/32/40740_2.png) [@zachary\_larick](https://forum.inductiveautomation.com/u/zachary_larick)\
**Post date:** [November 17, 2022, 12:26pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-rounding/66596/6 "2022-11-17T12:26:19Z")

</div>

Slight update, I changed the Number Type under Data on the Numeric Text Field to float and that fixed the issue
