# Converting Data Type Problem

**URL:** <https://forum.kirupa.com/t/converting-data-type-problem/122745>\
**Category:** Uncategorized\
**Created:** [September 16, 2004, 4:38pm UTC](https://forum.kirupa.com/t/converting-data-type-problem/122745 "2004-09-16T16:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asylum24](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@asylum24](https://forum.kirupa.com/u/asylum24)\
**Post date:** [September 16, 2004, 4:38pm UTC](https://forum.kirupa.com/t/converting-data-type-problem/122745/1 "2004-09-16T16:38:53Z")

</div>

So I’m importing this file called tbox.txt and in that file it has a variable, num, which equals 3. Now when I run the debug window, it comes back as num = “3”. So its a string. so I do num=num-0 to make it a number instead of a string. And it doesn’t work so I do a trace on num and it comes back as undefined… which is what I dont understand, how can it be “3” and undefined at the same time… please help…
