# Convert text string into a number - how

**URL:** <https://forum.kirupa.com/t/convert-text-string-into-a-number-how/268523>\
**Category:** flash\
**Created:** [August 14, 2008, 9:32pm UTC](https://forum.kirupa.com/t/convert-text-string-into-a-number-how/268523 "2008-08-14T21:32:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saxx](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@saxx](https://forum.kirupa.com/u/saxx)\
**Post date:** [August 14, 2008, 9:32pm UTC](https://forum.kirupa.com/t/convert-text-string-into-a-number-how/268523/1 "2008-08-14T21:32:33Z")

</div>

Bah i’m doing it wrong, is there any way to make flash convert my text string into a number, so it doesn’t throw up the, text string unrelated to number error

> size\_txt.restrict = “123456789”

size\_txt.text = enteredText;  
var enteredText:Number
