I am looking for a function similar to atol (char * to long int) but atofl (char to long double), does anyone know of a library that does this, or a simple way to do this, since using
atof on “0.00000005” casts off the 5?
Thanks.
I am looking for a function similar to atol (char * to long int)
Share
There is a function called
strtodthat does what you want.