How do I set the text of an actor to a double variable?

I'm trying to set the text of actor place to the x value of the actor pong1. I tried looking it up but all I could find was "strcpy(place.text, pong1.x);" and it doesn't work. What code would I use?