# Unwanted rounding after modifying a Datatype

**URL:** <https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085>\
**Category:** Ignition\
**Created:** [August 31, 2012, 1:24pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085 "2012-08-31T13:24:25Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![2Gi\_Technologie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/2gi_technologie/32/3307_2.png) [@2Gi\_Technologie](https://forum.inductiveautomation.com/u/2Gi_Technologie)\
**Post date:** [October 30, 2012, 1:53pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/21 "2012-10-30T13:53:46Z")

</div>

Hi,  
I’m still stuck with this problem, I have delivered my application next week. How can I do to help you reproduce the problem?  
Can I put my feet on team viewer or other …  
Thank you.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3aeffcbd43687acff9f75fe40c85b99aff46f37c.PNG)

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [November 5, 2012, 11:32pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/22 "2012-11-05T23:32:26Z")

</div>

Thanks for your help, I am now able to successfully reproduce the issues. I will let the developers know.

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [November 6, 2012, 6:59pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/23 "2012-11-06T18:59:53Z")

</div>

Hi,

Sorry for how long this has taken, but we’ve got this particular issue sorted out. The UDT parameter system was converting numbers to strings and back, with the wrong locale, causing the rounding. This only affected UDT instances.

I need to work with the build team and figure out when we can get a build together for you (it would be 7.5.5 beta 1), but I’ll try to hurry, because I know you mentioned that you’re delivering the project this week.

We’re also working on the other number edit issues as well.

Regards,

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [November 6, 2012, 8:02pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/24 "2012-11-06T20:02:13Z")

</div>

Ok, the value editing issue reported by Chi has also been fixed. Turned out to be a bug in Java that we needed to work around. Both of these fixes should be in the first 7.5.5 beta.

Regards,

---

<div class="post-metadata">

**Author:** ![2Gi\_Technologie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/2gi_technologie/32/3307_2.png) [@2Gi\_Technologie](https://forum.inductiveautomation.com/u/2Gi_Technologie)\
**Post date:** [November 6, 2012, 8:22pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/25 "2012-11-06T20:22:18Z")

</div>

Thank you for taking care of it quickly, i will try it tomorow and i will get back to you.  
 ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [November 7, 2012, 5:53pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/26 "2012-11-07T17:53:26Z")

</div>

Any updates?

---

<div class="post-metadata">

**Author:** ![2Gi\_Technologie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/2gi_technologie/32/3307_2.png) [@2Gi\_Technologie](https://forum.inductiveautomation.com/u/2Gi_Technologie)\
**Post date:** [November 7, 2012, 6:33pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/27 "2012-11-07T18:33:01Z")

</div>

when the update should be available?  
🙂

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [November 7, 2012, 6:47pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/28 "2012-11-07T18:47:28Z")

</div>

7.5.5-beta1 should be up in a couple of hours.

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [November 7, 2012, 7:10pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/29 "2012-11-07T19:10:20Z")

</div>

Also, the developer is still working on a fix for the expression tag issue where using:

```auto
tag("tagpath")+1.0
```

was returning an unexpected result. For now, a workaround would be to directly reference the tag using curly braces, which should work fine.

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [November 7, 2012, 7:20pm UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/30 "2012-11-07T19:20:33Z")

</div>

It turns out that the use of “tag()” causes the “+” to be seen as concatenation, so you have to cast the result as a number (such as a float) to get it to work:

```auto
toFloat(tag("tagpath"))+1.0
```

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [November 8, 2012, 12:48am UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/31 "2012-11-08T00:48:33Z")

</div>

7.5.5-beta1 is up now.

---

<div class="post-metadata">

**Author:** ![2Gi\_Technologie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/2gi_technologie/32/3307_2.png) [@2Gi\_Technologie](https://forum.inductiveautomation.com/u/2Gi_Technologie)\
**Post date:** [November 9, 2012, 9:57am UTC](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085/32 "2012-11-09T09:57:22Z")

</div>

It Works !  
Good job ![:thumb_right:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2026e28c0c425034352c1b75807edf956adc75f4.gif ":thumb\_right:")

[Previous page](https://forum.inductiveautomation.com/t/unwanted-rounding-after-modifying-a-datatype/5085.md?page=1)
