-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix minimal-printf floating point decimal output error #14179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@caoddx, thank you for your changes. |
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-maintainers, please start CI to get the PR merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line was indeed missing from the final review of the PR, as we can see here https://github.com/ARMmbed/mbed-os/pull/13548/files#r537611861
Thanks for the fix!
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Backported ARMmbed#14179 to fix printing floats. 3.3 would be printed as 3.03, as would 3.4 as the integer value was printed after the decimal point also. Even with this fix there where another corner case. 0.9976 would be printed as 0.100 as 99 was rounded up without overflowing to the integer value. With this change 0.9976 is printed as 0.99 (Overflow to integer quite complex...)
Summary of changes
Fix #14069
Need this configuration file for testing:
platform/tests/TESTS/mbed_platform/minimal-printf/compliance/test_config.json
Documentation
none
Pull request type
Test results
Reviewers