I need to change an int or float to a string. I don't know whether the number is going to be a float or an int, and casting to a string doesn't seem to work. any suggestions?
I need to change an int or float to a string. I don't know whether the number is going to be a float or an int, and casting to a string doesn't seem to work. any suggestions?
Check out the faq and change the function to a templated function so you can use floats
"Think not but that I know these things; or think
I know them not: not therefore am I short
Of knowing what I ought."
-John Milton, Paradise Regained (1671)
"Work hard and it might happen."
-XSquared