Can someone help? I can't figure out how to convert a variable of type float to a string. any help would be great.
Thanks![]()
This is a discussion on Conversion from Float to String within the C++ Programming forums, part of the General Programming Boards category; Can someone help? I can't figure out how to convert a variable of type float to a string. any help ...
Can someone help? I can't figure out how to convert a variable of type float to a string. any help would be great.
Thanks![]()
try this
sprintf(oi,"%d",OI);
/*use sprintf to convert numbers to strings %d converts ints you will have to change it for floats*/