Advertisement

char* -> float

Started by August 26, 2001 02:51 AM
1 comment, last by gph-gw 23 years, 5 months ago
Quick question: how do I convert "1.5" into 1.5f? atoi does it for ints but is there one for floats?
Indeed, float somenumber=atof(string); will do just that.
Advertisement
Yes. atof which returns a double.

This topic is closed to new replies.

Advertisement