# Double Array Tag Write Incorrect

**URL:** <https://forum.inductiveautomation.com/t/double-array-tag-write-incorrect/69776>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [February 13, 2023, 4:08pm UTC](https://forum.inductiveautomation.com/t/double-array-tag-write-incorrect/69776 "2023-02-13T16:08:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miles.brim](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@miles.brim](https://forum.inductiveautomation.com/u/miles.brim)\
**Post date:** [February 13, 2023, 4:08pm UTC](https://forum.inductiveautomation.com/t/double-array-tag-write-incorrect/69776/1 "2023-02-13T16:08:25Z")

</div>

Hi,  
I have a UDT with a few tags. One tag runs a script and then writes the result to another tag. The result is a 2-element list of doubles. For some reason, it is not writing to the first element. I created another tag to debug and I write the string version of the list to it, which it does fine. What am I doing wrong here?

```auto
system.tag.write("[.]Check",str([Out[0],Out[1]]))
system.tag.write("[.]pOut",Out)

```

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/9/69fdd8f60ac1474f3c4e8d1a7893619a0dcbf8e1.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/0/206f25adb308e4fd5f9561dcc83ab9a56c634898.png)

---

<div class="post-metadata">

**Author:** ![miles.brim](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@miles.brim](https://forum.inductiveautomation.com/u/miles.brim)\
**Post date:** [February 13, 2023, 5:03pm UTC](https://forum.inductiveautomation.com/t/double-array-tag-write-incorrect/69776/2 "2023-02-13T17:03:39Z")

</div>

I eventually solved this on my own. "Out" is a response from an API, which sent back the data as single precision. For some reason float() did not resolve it, but multiplying by 1 did:  
`system.tag.write("[.]pOut",[1*Out[0],1*Out[1]])`
