Is there a way to set the text of a string to a float, or an integer?
*Edit*
Thanks Laurent, i saw what you posted on another topic that had the same question.
Incase anyone needs the same answer
//Modified for SFML
#include <sstream>
var variable_name = x;
std::stringstream out;
out << variable_name;
sting_name.SetText(out.str());
//Original Way
#include <sstream>
int i = 5;
std::string s;
std::stringstream out;
out << i;
s = out.str();