# Tag Clamping and Float Conversion

**URL:** <https://forum.inductiveautomation.com/t/tag-clamping-and-float-conversion/113814>\
**Category:** Ignition\
**Tags:** ignition83\
**Created:** [February 6, 2026, 2:57pm UTC](https://forum.inductiveautomation.com/t/tag-clamping-and-float-conversion/113814 "2026-02-06T14:57:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liam\_Dietrich](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Liam\_Dietrich](https://forum.inductiveautomation.com/u/Liam_Dietrich)\
**Post date:** [February 6, 2026, 2:57pm UTC](https://forum.inductiveautomation.com/t/tag-clamping-and-float-conversion/113814/1 "2026-02-06T14:57:16Z")

</div>

Hi, I am currently encountering an issue using the clamping feature on tags.

I have a tag that is clamped between [0-4.4]. Currently if the REAL value in the PLC is set to [4.4], the conversion results in the value being [4.400000095] in Ignition. Since [4.400000095 \> 4.4] the value is considered out of the limits.

I do not want to increase the upper clamp limit, since 4.4 is truly the maximum the user should be able to enter.

Is there any method to clamp the number after it has been formatted? Or are there other potential solutions?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 6, 2026, 3:00pm UTC](https://forum.inductiveautomation.com/t/tag-clamping-and-float-conversion/113814/2 "2026-02-06T15:00:47Z")

</div>

This isn't a formatting issue, it's a floating point accuracy issue.

4.4 doesn't have an exact representation in IEEE-754 floating point - the closest actual value is 4.400000095367431640625.

You will never get a value that is _actually_ 4.4 in its representation, you would only see 4.4 after formatting/rounding.

---

<div class="post-metadata">

**Author:** ![Liam\_Dietrich](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Liam\_Dietrich](https://forum.inductiveautomation.com/u/Liam_Dietrich)\
**Post date:** [February 6, 2026, 3:19pm UTC](https://forum.inductiveautomation.com/t/tag-clamping-and-float-conversion/113814/3 "2026-02-06T15:19:06Z")

</div>

> [@Liam\_Dietrich](#):
>
> Hi, I am currently encountering an issue using the clamping feature on tags.
> 
> I have a tag that is clamped between [0-4.4]. Currently if the REAL value in the PLC is set to [4.4], the conversion results in the value being [4.400000095] in Ignition. Since [4.400000095 \> 4.4] the value is considered out of the limits.
> 
> I do not want to increase the upper clamp limit, since 4.4 is truly the maximum the user should be able to enter.
> 
> Is there any method to clamp the number after it has been formatted? Or are there other potential solutions?

Thank you for the fast response.

Apologies on my poor phrasing of the question. I did determine that the value in Ignition is correct in terms of its IEEE-754 representation. I was optimistic in thinking that there may be a method to clamp the value after it is formatted.

Would you say the only solution would be to increase the upper limit by an amount that is less than the formatting? For example, if I format the number to two decimal places (#,##0.00) then I need set the upper limit to 4.401.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 6, 2026, 3:19pm UTC](https://forum.inductiveautomation.com/t/tag-clamping-and-float-conversion/113814/4 "2026-02-06T15:19:55Z")

</div>

I played with this a little and the only thing that makes it work like you want is using a double precision value in the OPC/PLC source instead of single precision.

Otherwise you'll have to play with increasing the eng limits. All the clamping/scaling/etc is pre-format.

---

<div class="post-metadata">

**Author:** ![Liam\_Dietrich](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Liam\_Dietrich](https://forum.inductiveautomation.com/u/Liam_Dietrich)\
**Post date:** [February 6, 2026, 3:25pm UTC](https://forum.inductiveautomation.com/t/tag-clamping-and-float-conversion/113814/5 "2026-02-06T15:25:33Z")

</div>

Okay, I appreciate you taking the time to look into this issue.

I will continue forward with increasing the limits slightly. Thanks!
