compair string with floting

01 Apr 2012

how to compair string with floting i have a string setpoint="123" and floting point reading analogIn temp.read() i want to turn on led when temp.read()> string

01 Apr 2012

Convert your string to a float. See here:

http://www.cplusplus.com/reference/clibrary/cstdlib/atof/

Mike