Hi, I'm using a launchpad and I want to convert a string value (weight) to a float or double value, have tried atof, but it doens't work. Do you know a way to achive this cast?
I have also tried float() or double(), like this:
String str="002.845";
float weight= float(str);
or
char str[7]="002.845";
double weight= atof(str);