# Why is this variable turning into an array of 4 when I divide it?

**URL:** <https://forum.electromage.com/t/why-is-this-variable-turning-into-an-array-of-4-when-i-divide-it/4693>\
**Category:** Troubleshooting\
**Created:** [May 17, 2026, 2:03am UTC](https://forum.electromage.com/t/why-is-this-variable-turning-into-an-array-of-4-when-i-divide-it/4693 "2026-05-17T02:03:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjn566](https://forum.electromage.com/user_avatar/forum.electromage.com/cjn566/32/3029_2.png) [@cjn566](https://forum.electromage.com/u/cjn566)\
**Post date:** [May 17, 2026, 2:03am UTC](https://forum.electromage.com/t/why-is-this-variable-turning-into-an-array-of-4-when-i-divide-it/4693/1 "2026-05-17T02:03:50Z")

</div>

Why is this variable turning into an array of 4 when I divide it? And only on the pattern I’m working on, not a problem with new pattern code.

---

<div class="post-metadata">

**Author:** ![cjn566](https://forum.electromage.com/user_avatar/forum.electromage.com/cjn566/32/3029_2.png) [@cjn566](https://forum.electromage.com/u/cjn566)\
**Post date:** [May 17, 2026, 2:17am UTC](https://forum.electromage.com/t/why-is-this-variable-turning-into-an-array-of-4-when-i-divide-it/4693/2 "2026-05-17T02:17:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![wizard](https://forum.electromage.com/user_avatar/forum.electromage.com/wizard/32/4_2.png) [@wizard](https://forum.electromage.com/u/wizard)\
**Post date:** [May 17, 2026, 2:26pm UTC](https://forum.electromage.com/t/why-is-this-variable-turning-into-an-array-of-4-when-i-divide-it/4693/3 "2026-05-17T14:26:51Z")

</div>

> [@Exported number variable sometimes shows as an array?](https://forum.electromage.com/t/exported-number-variable-sometimes-shows-as-an-array/4183/2):
>
> This is normal, a bit of a leftover artifact of how getVars API guesses type. Very small numbers can sometimes be mistaken for arrays. A workaround would be to e.g. add 1 to a and then it will stop glitching the UI, or use a showNumber or gauge UI control to keep an eye on it instead of the Vars Watch.

---

<div class="post-metadata">

**Author:** ![system](https://forum.electromage.com/uploads/default/original/1X/98123d16088a5451b5a585e24c0f2a40dd76061e.png) [@system](https://forum.electromage.com/u/system)\
**Post date:** [September 14, 2026, 2:27pm UTC](https://forum.electromage.com/t/why-is-this-variable-turning-into-an-array-of-4-when-i-divide-it/4693/4 "2026-09-14T14:27:09Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
