I want to change a string to a float. What is contained in the string *is* a float (eg. string foo = "38.5"). I don't think there is a way of converting it straight off so I figure I have to change it into a character array and then apply strtof on it. Problem is, I'm a n00b and don't really know how to use cstrings properly. So could someone please paste a few lines of code to change my string into a float? Thanks!