# Adding Float Values

**URL:** <https://forum.inductiveautomation.com/t/adding-float-values/101125>\
**Category:** Ignition\
**Created:** [January 20, 2025, 10:55pm UTC](https://forum.inductiveautomation.com/t/adding-float-values/101125 "2025-01-20T22:55:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephanie\_Aguiar](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Stephanie\_Aguiar](https://forum.inductiveautomation.com/u/Stephanie_Aguiar)\
**Post date:** [January 20, 2025, 10:55pm UTC](https://forum.inductiveautomation.com/t/adding-float-values/101125/1 "2025-01-20T22:55:09Z")

</div>

I need some help figuring out why I can't add +0.0001. My script works fine when i am working in the 3rd decimal place but if I do anything more than that the script doesn't work.

 ![Screenshot 2025-01-20 144905](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/f/5f6a7c6f11295b834c8e0419b0b4f502b55dcc0c.jpeg)  
 ![Screenshot 2025-01-20 145107](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/2/b2e7f22f37148301ca8b026bae58a32e48d33558.jpeg)

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [January 20, 2025, 10:58pm UTC](https://forum.inductiveautomation.com/t/adding-float-values/101125/2 "2025-01-20T22:58:34Z")

</div>

I believe you need to change the deadband.

---

<div class="post-metadata">

**Author:** ![Stephanie\_Aguiar](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Stephanie\_Aguiar](https://forum.inductiveautomation.com/u/Stephanie_Aguiar)\
**Post date:** [January 20, 2025, 11:01pm UTC](https://forum.inductiveautomation.com/t/adding-float-values/101125/3 "2025-01-20T23:01:47Z")

</div>

what should i change it to?

---

<div class="post-metadata">

**Author:** ![NP209](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/np209/32/80704_2.png) [@NP209](https://forum.inductiveautomation.com/u/NP209)\
**Post date:** [January 20, 2025, 11:09pm UTC](https://forum.inductiveautomation.com/t/adding-float-values/101125/4 "2025-01-20T23:09:42Z")

</div>

Does your tag have a starting value? if the tag is Null it might be having a hard time starting.

---

<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:** [January 20, 2025, 11:15pm UTC](https://forum.inductiveautomation.com/t/adding-float-values/101125/5 "2025-01-20T23:15:26Z")

</div>

> [@Stephanie\_Aguiar](#):
>
> What should I change it to?

Try changing it to half of the minimum change you want to detect, so 0.00005.

Tips:

- `tagValue += 0.0001` syntax works in Python.
- system.tag.writeBlocking expects **lists** for both the paths and arguements (although it still works with a string when there's only one - for backward compatibility) so,

```python
    path = ["[tags2]11E211/Entry0"]
    tagValue = system.tag.readBlocking(path)[0].value

    tagValue += 0.0001

    system.tag.writeBlocking(path, [tagValue])

```

NP209's comment is right. Your tag definition value is blank.
