# Put an Numeric var in a string AS 2.0

**URL:** <https://forum.kirupa.com/t/put-an-numeric-var-in-a-string-as-2-0/180984>\
**Category:** flash\
**Created:** [March 5, 2006, 6:58am UTC](https://forum.kirupa.com/t/put-an-numeric-var-in-a-string-as-2-0/180984 "2006-03-05T06:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kurdix](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@Kurdix](https://forum.kirupa.com/u/Kurdix)\
**Post date:** [March 5, 2006, 6:58am UTC](https://forum.kirupa.com/t/put-an-numeric-var-in-a-string-as-2-0/180984/1 "2006-03-05T06:58:06Z")

</div>

**nTest = 1 //numeric**  
**sTest = " test" //string**  
**sFinal = nTest & sTest //string**

* * *

I get an error with this, beacause sFinal is a string, and im tryin to put in an numeric value.  
How can i create this code so that it will work? I want the **sFinal** to contain “ **1 test** ”.  
This code is useless, i know, but this is just an example.
