lpcware

string to float

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by hcanova on Sat Sep 08 12:39:21 MST 2012
Hi

I'm trying to convert an char vector to float but the compiler return an error

my code like this:

 char buffer[2];
buffer[0]='2';
buffer[1]='3';
float a;
a= atof(buffer);


some one have one idea, whats happening?

thanks a lot

Hcanova

Outcomes