# TextInput filled with numbers

**URL:** <https://community.thunkable.com/t/textinput-filled-with-numbers/5146>\
**Category:** Questions about Thunkable X\
**Created:** [July 4, 2017, 3:48pm UTC](https://community.thunkable.com/t/textinput-filled-with-numbers/5146 "2017-07-04T15:48:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [July 4, 2017, 3:48pm UTC](https://community.thunkable.com/t/textinput-filled-with-numbers/5146/1 "2017-07-04T15:48:40Z")

</div>

I testet a variety of operations with Textinput and buttons and had a problem with numbers in TextInput fields.

If I fill a TextInput field with a number while running the app, this field seems only to accept strings.  
It is not possible to do math-operations with the content of such a field.

---

<div class="post-metadata">

**Author:** ![BillG](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@BillG](https://community.thunkable.com/u/BillG)\
**Post date:** [July 5, 2017, 6:30pm UTC](https://community.thunkable.com/t/textinput-filled-with-numbers/5146/2 "2017-07-05T18:30:21Z")

</div>

Hi @rollke and @thunkable,

I think I have duplicated the problem:

 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/0/009f7cc6b889b89935dd127a240ef0253847e3ce.png)

When I input a 5 into the input box, it seems to be recognized as a string, rather than a number. When 2 is added to the string 5, it’s added to “nothing”, which results in a total of 2, instead of 7.

BTW, a “from label set text to” block won’t coerce non-string values, but will accept any variable value, hence the intermediate variable. This behavior still needs to be fixed by @thunkable (hint). 🙂

Thanks!  
BillG

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:06pm UTC](https://community.thunkable.com/t/textinput-filled-with-numbers/5146/3 "2024-11-08T12:06:31Z")

</div>


