Skip to content

Fix printing double values in bpls min/max and the Min and Max string… - #5025

Merged
pnorbert merged 2 commits into
ornladios:masterfrom
pnorbert:fix-double-printing
Apr 28, 2026
Merged

Fix printing double values in bpls min/max and the Min and Max string…#5025
pnorbert merged 2 commits into
ornladios:masterfrom
pnorbert:fix-double-printing

Conversation

@pnorbert

Copy link
Copy Markdown
Contributor

…s of the io.AvailableVariables() result map/dictionary.

Note: %g in printf and cout << doublevar in C++ renders 6 significant digits by default and a value like 130255.32345 is printed as 130255, looking like an integer. Now we print 1.302553e+05. In case of bpls, min/max for small values (-10000, 10000) are still printed with %g, but outside that they are printed with %e.

…s of the io.AvailableVariables() result map/dictionary.

Note: %g in printf and cout << doublevar in C++ renders 6 significant digits by default and a value like 130255.32345 is printed as 130255, looking like an integer. Now we print 1.302553e+05.
In case of bpls, min/max for small values (-10000, 10000) are still printed with %g, but outside that they are printed with %e.
@pnorbert
pnorbert requested a review from eisenhauer April 28, 2026 20:35
@pnorbert
pnorbert merged commit e225139 into ornladios:master Apr 28, 2026
47 checks passed
vicentebolea added a commit that referenced this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants