Parse a double
from a string.
Defined in <SDL3/SDL_stdinc.h>
double SDL_atof(const char *str);
const char * | str | The null-terminated string to read. Must not be NULL. |
(double) Returns The parsed double
.
The result of calling SDL_atof(str)
is equivalent to SDL_strtod(str, NULL)
.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.