atof() if you have that available. Doing exactly what you ask for, and nothing more, it's more lightweight and simpler than sscanf(). sscanf() is more capable/versatile. On some targets, atof() isn't available.
Good embedded compilers should have atoi, itoa, utoa, atof, ftoa etc. available because full printf/scanf family are quite big for many microcontroller targets, while just fine on general purpose desktop/mobile computing.