convert char to float

This is a discussion on convert char to float within the C++ Programming forums, part of the General Programming Boards category; Hi everyone, i'm kinda stuck with this method of converting char to float. What i'm trying to do is let ...

convert char to float

Hi everyone, i'm kinda stuck with this method of converting char to float. What i'm trying to do is let the user enters the amount of money in character variable, then convert it into float variable. Please help, thanks

"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens

The code is use for OpenGL, the typing function use an array of character to accept the user input. That is why i have to convert from char to float. It is for default price for an object. The adminstration input a default price. Thanks