I'm trying to check if a string is a number, then change it into a number if it's valid. No problem, it checks it, and it's all good.
BUT, how do I do the actual conversion? I've tried atoi(), but that's only for chars, and a couple other things.
Suggestions?
PS - If possible, also include how to change to a float.
-------------------------
Just call me Captain Awesome.
BUT, how do I do the actual conversion? I've tried atoi(), but that's only for chars, and a couple other things.
Suggestions?
PS - If possible, also include how to change to a float.
-------------------------
Just call me Captain Awesome.