You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "HERE88 (via GitHub)" <gi...@apache.org> on 2023/07/08 15:32:46 UTC

[GitHub] [nuttx] HERE88 opened a new pull request, #9748: libc/libvsprintf: fix vsnprintf bug with "%e"

HERE88 opened a new pull request, #9748:
URL: https://github.com/apache/nuttx/pull/9748

   For "%e" conversion, the exponent always contains at least two digits. 
   That means if the value is zero, the exponent is 00, not 0.
   
   Such as code:
     printf(buffer, sizeof(buffer), "%e", 1.232323232323);
     printf(buffer, sizeof(buffer), "%e", 12.32323232323);
     printf(buffer, sizeof(buffer), "%e", 123.2323232323);
   
   Expected output:
     1.232323e+00
     1.232323e+01
     1.232323e+02
   
   But real output:
     1.232323e+0
     1.232323e+1
     1.232323e+2
   
   ## Summary
   
   ## Impact
   
   ## Testing
   
   


-- 
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-unsubscribe@nuttx.apache.org

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


[GitHub] [nuttx] HERE88 commented on pull request #9748: libc/libvsprintf: fix vsnprintf bug with "%e"

Posted by "HERE88 (via GitHub)" <gi...@apache.org>.
HERE88 commented on PR #9748:
URL: https://github.com/apache/nuttx/pull/9748#issuecomment-1627601357

   > Check for the uppercase version too, but from my experience: I have seen both formatting happening in various implementations ; the two seems to be accepted.
   
   I have checkerd the uppercase version, they both have the same issue. The only difference is that an E conversion uses the letter E (rather than e) to introduce the exponent.
   


-- 
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-unsubscribe@nuttx.apache.org

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


[GitHub] [nuttx] mu578 commented on pull request #9748: libc/libvsprintf: fix vsnprintf bug with "%e"

Posted by "mu578 (via GitHub)" <gi...@apache.org>.
mu578 commented on PR #9748:
URL: https://github.com/apache/nuttx/pull/9748#issuecomment-1627460217

   Check for the uppercase version too, but from my experience: I have seen both formatting in  various implementations ; the two seems to be accepted.


-- 
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-unsubscribe@nuttx.apache.org

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


[GitHub] [nuttx] xiaoxiang781216 merged pull request #9748: libc/libvsprintf: fix vsnprintf bug with "%e"

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #9748:
URL: https://github.com/apache/nuttx/pull/9748


-- 
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-unsubscribe@nuttx.apache.org

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