1
General / Displaying a number with sf::string
« on: April 10, 2012, 07:57:08 pm »
Hey all. I am using the MinGW which comes with Code::Blocks, SFML 1.6.
I will be straight on my question. How do I display a number? I've tried this:
To later display that string, but SetText() can't take float as argument. So, how could I set my string as number for later use? Is there any conversion possible?
I will be straight on my question. How do I display a number? I've tried this:
Code: [Select]
PlayingPos.SetText(Music1.GetPlayingOffset());
To later display that string, but SetText() can't take float as argument. So, how could I set my string as number for later use? Is there any conversion possible?