# How do I output a number to a dynamic textfield?

**URL:** <https://forum.kirupa.com/t/how-do-i-output-a-number-to-a-dynamic-textfield/313741>\
**Category:** flash\
**Created:** [September 8, 2010, 2:22pm UTC](https://forum.kirupa.com/t/how-do-i-output-a-number-to-a-dynamic-textfield/313741 "2010-09-08T14:22:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpearson311](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Post date:** [September 8, 2010, 2:22pm UTC](https://forum.kirupa.com/t/how-do-i-output-a-number-to-a-dynamic-textfield/313741/1 "2010-09-08T14:22:51Z")

</div>

I have a simple dynamic textfield with the variable name total\_txt. Why am I getting an error with this code?

```auto

var myNum:Number = 0.00;
total_txt.text = myNum;

```

I’m assuming it’s because the textfield is only wanting to read a string and not a number, but how do I output a number to a dynamic textfield?

Jesse
