# Converting numbers into strings

**URL:** <https://forum.kirupa.com/t/converting-numbers-into-strings/289135>\
**Category:** Uncategorized\
**Created:** [May 26, 2009, 7:32pm UTC](https://forum.kirupa.com/t/converting-numbers-into-strings/289135 "2009-05-26T19:32:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krimzondestiny](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krimzondestiny](https://forum.kirupa.com/u/krimzondestiny)\
**Post date:** [May 26, 2009, 7:32pm UTC](https://forum.kirupa.com/t/converting-numbers-into-strings/289135/1 "2009-05-26T19:32:28Z")

</div>

I’m doing the finishing touches on my games. I want to keep track of and display the level (waveCount) and display it in a dynamic text box. However, AS isn’t allowing me to convert the number into a string.

```php
private var waveCount:Number = new Number();
private var waveOutput:String = new String (waveCount);
private var waveWord:Sprite = new WaveWord();
private var waveCntDisplay:TextField = new WaveCntDisplay();

stage.addEventListener(Event.ENTER_FRAME, trackWaveCount);

private function trackWaveCount(e:Event):void{
        //trace("Wave: " + waveCount);
        waveOutput = waveCount.toString();
    waveCntDisplay.text = waveOutput;
}

```
