Question:
I am trying to truncate and then convert a float to a string. Something like atoi().Is this possible? Any suggestions?
Answer:
float f = 1.234;int i = f;strstream s;s << i;cout s.str();should do the trick..hope that helps-bomC++Pro
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.























