Skip to content

Conversation

guitargeek
Copy link
Contributor

In #18194, an optional parameter to TFormula::GetExpFormula() was introduced, which can be used to customize the precision when putting parameters into the jitted code.

However, I don't see the reason why wouldn't like to always print the floating point numbers with maximum precision, which is suggested in this commit.

This is achieved using modern C++ functions, which are also not respecting the users locale setting, but instead use the classic C locale by default, which is what we need when generating code.

Follows up on #18194 (and its partial revert #18216).

Closes #17225.

Replaces #17327.

In root-project#18194, an optional parameter to `TFormula::GetExpFormula()` was
introduced, which can be used to customize the precision when putting
parameters into the jitted code.

However, I don't see the reason why wouldn't like to always print the
floating point numbers with maximum precision, which is suggested in
this commit.

This is achieved using modern C++ functions, which are also not
respecting the users locale setting, but instead use the classic C
locale by default, which is what we need when generating code.

Follows up on root-project#18194 (and its partial revert root-project#18216).

Closes root-project#17225.

Replaces root-project#17327.
Copy link

Test Results

    21 files      21 suites   3d 15h 33m 30s ⏱️
 3 561 tests  3 424 ✅  0 💤 137 ❌
73 028 runs  72 874 ✅ 17 💤 137 ❌

For more details on these failures, see this check.

Results for commit 9d4425e.

Copy link
Member

@dpiparo dpiparo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@guitargeek guitargeek merged commit b8527be into root-project:master Aug 26, 2025
26 of 30 checks passed
@guitargeek guitargeek deleted the issue-17225 branch August 26, 2025 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TFormula: Possibility of failure during dynamic compilation of predefined functions "gausn" and "landau"
3 participants