Skip to content
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

Use powf instead of powi #1

Merged
merged 2 commits into from
Oct 16, 2021
Merged

Use powf instead of powi #1

merged 2 commits into from
Oct 16, 2021

Conversation

pierd
Copy link
Contributor

@pierd pierd commented Oct 15, 2021

powi seems to have issues (rust-lang/rust#71355) which leads to incorrect formatting. For example: 1e300 gets formatted with %e as 0.000000e+300 (expected result: 1.000000e+300).

Using powf fixes the issue.

@tjol
Copy link
Owner

tjol commented Oct 16, 2021

That's very interesting - and unexpected.

Thanks for the fix!

@tjol tjol merged commit 6677090 into tjol:master Oct 16, 2021
@pierd pierd deleted the test-1e300 branch October 17, 2021 22:14
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