fjpanag opened a new issue, #6945:
URL: https://github.com/apache/incubator-nuttx/issues/6945

   `strtod()` can produce wrong results in some cases of invalid input.
   
   Take a look at the following snippet:
   
   ```c
       char * str = "1e";
       char * end;
       
       int ret = strtod(str, end);
       
       printf("%d\n", ret);
   
   ```
   
   On my Linux machine, this prints `0`, while on NuttX it prints `1`.
   
   It seems that when the exponent is not correctly parsed, it is assumed to be 
0 instead of returning an error.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to