# Float Value Conversion Error only for one TAG in General

**URL:** <https://forum.inductiveautomation.com/t/float-value-conversion-error-only-for-one-tag-in-general/4019>\
**Category:** Ignition\
**Created:** [February 17, 2012, 8:10am UTC](https://forum.inductiveautomation.com/t/float-value-conversion-error-only-for-one-tag-in-general/4019 "2012-02-17T08:10:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin.abdul](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@robin.abdul](https://forum.inductiveautomation.com/u/robin.abdul)\
**Post date:** [February 17, 2012, 8:10am UTC](https://forum.inductiveautomation.com/t/float-value-conversion-error-only-for-one-tag-in-general/4019/1 "2012-02-17T08:10:49Z")

</div>

![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/008277a2a5eca9f9661556e5e24de2d9904acbb0.JPG)  
dear brother,  
please see this error as per attached file and can you please advise…

regards

abdul

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/a52cb0df1b15c5cdb295dcb10e84002c5796f37a.JPG)

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [February 17, 2012, 2:26pm UTC](https://forum.inductiveautomation.com/t/float-value-conversion-error-only-for-one-tag-in-general/4019/2 "2012-02-17T14:26:39Z")

</div>

Does casting the value to a float in the script fix it?

```auto
value = float(event.source.value)
system.tag.writeToTag('MOTOR_SETTINGS/DB_TAGS/LINE_SPEED_ACT_STD16, 'database')
```

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 17, 2012, 6:21pm UTC](https://forum.inductiveautomation.com/t/float-value-conversion-error-only-for-one-tag-in-general/4019/3 "2012-02-17T18:21:49Z")

</div>

The problem is not a casting issue. You are using a propertyChange script but not filtering it for ONE property. So whenever any property on that component changes you are firing the tag write. You need to filter it out like this:`if event.propertyName == "value":
    value = event.newValue
    system.tag.writeToTag('MOTOR_SETTINGS/DB_TAGS/LINE_SPEED_ACT_STD16', value)`
