I'm here again...

 
What I thought It worked now don't!..
The first tests was going well...but some time later...
atof didn't work...
 
In the first step It look likes as atof work on numbers >1.0 and didn't work with number <1.0
 
for example atof(0.02) = 0.0
 
but after a big number of attempts I see that also atof(X) with x  > 1.0 sometimes don't work...
 
So I'm stiil losing time tring to solve this problem!
 
Example : atof("1.7")
 
atof call the function strtod   =>  return(strtod(str, NULL));
 
strtod call => __strtold(INT_MAX, &__StringRead, (void *)&isc, &count, &overflow);
 
after the execution of __strtold
 
 overflow = 1 , count =3, value = -1.173368e-19
 
Any help.. how can happen this...?! 

 
Added information : the sistem I'm using is integrated with microC/OS-II  RTOS
I've already tried the atof function with OS interrupt enabled and disabled.
Message Edited by Troy Corser on 
2007-12-10 10:09 AM