Skip to content

Conversation

bashbaug
Copy link
Collaborator

@bashbaug bashbaug commented May 6, 2024

The <cstdlib> include only has support for std::abs, not for std::fabs. The <cmath> include has both, so we should include it instead.

https://en.cppreference.com/w/cpp/numeric/math/fabs

bashbaug added 2 commits May 6, 2024 16:10
The <cstdlib> include only has support for std::abs, not for std::fabs.
The <cmath> include has both.
@mkinsner mkinsner merged commit 6a2161d into Apress:main May 7, 2024
@bashbaug bashbaug deleted the cmath-not-cstdlib branch May 7, 2024 13:34
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