# Convert text to number

**URL:** <https://forum.kirupa.com/t/convert-text-to-number/148308>\
**Category:** Uncategorized\
**Created:** [May 18, 2005, 8:25pm UTC](https://forum.kirupa.com/t/convert-text-to-number/148308 "2005-05-18T20:25:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amirag](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/amirag/32/872_2.png) [@amirag](https://forum.kirupa.com/u/amirag)\
**Post date:** [May 18, 2005, 8:25pm UTC](https://forum.kirupa.com/t/convert-text-to-number/148308/1 "2005-05-18T20:25:29Z")

</div>

[color=#cc0066][font=Tahoma]Hi all,[/font][/color]

[color=#cc0066][font=Tahoma]I load some numbers from text file… the problem that flash is seeing these numbers as NaN and I want to make some calculations on them… how could I convert it to numbers… I try to write it as follows:[/font][/color]

[color=#cc0066][font=Tahoma]  
[font=Tahoma][color=black]num1=parseInt( this.numtxt.text);[/color][/font]

[/font][/color]  
[color=#cc0066][font=Tahoma]but it doesn’t work… [/font][/color]

[color=#cc0066][font=Tahoma]thanks in advance[/font][/color]
