atoi vs atol vs atof

Hello everybody and I have a doubt...

What is atoi - atol? And atoi - atol vs atof?
And, actually I love atof. But, my really doubt is "Does the float-double function atof perform faster than the integer one?"
In my opinion, I think the "double" is better.
Obviously atoi and atol perform (most times) faster than atof, and atof (again most times) performs faster than (suppose it exists) atod.

Anyways you should try [OH GOD]Avoiding[/OH GOD] them. They have no error checkings, you should use strtol/strtod.

http://www.cplusplus.com/reference/cstdlib/strtol/
http://www.cplusplus.com/reference/cstdlib/strtod/
Last edited on
hevitating

Avoiding

*runs away*
Topic archived. No new replies allowed.