Uh oh!
There was an error while loading. Please reload this page.
fixed #13606/#13607 - consistently print (precise) float as such in ValueFlow debug output - #7274
Merged
Merged
Conversation
firewave
commented
Feb 1, 2025
CollaboratorAuthor
Okay. This appears to be a bit of a mess. #include<iostream>
#include<string>voidprint(double d)
{
std::cout << std::to_string(d) << std::endl;
printf("%f\n", d);
std::cout << d << std::endl;
printf("%e\n", d);
printf("%g\n", d);
}
intmain()
{
double d = 0.0000001;
print(d);
d = 1 / 0.5;
std::cout << std::endl;
print(d);
}https://godbolt.org/z/PK7MrYqbP
|
--debug ValueFlow outputfirewaveforce-pushed
the
vfvalue-float
branch
2 times, most recently
from
February 1, 2025 19:22
1d3c4fa to
9c3c9afCompare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
firewaveforce-pushed
the
vfvalue-float
branch
2 times, most recently
from
February 6, 2025 01:47
ca7d387 to
1ee82afComparefirewave
marked this pull request as ready for review
February 6, 2025 01:48
firewave
commented
Feb 6, 2025
CollaboratorAuthor
We should probably also add some unit tests testing this. |
firewaveforce-pushed
the
vfvalue-float
branch
2 times, most recently
from
February 6, 2025 02:15
789622e to
4e4997cComparedanmar
approved these changes
Feb 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.