Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix NumberToStringGTest failures by adding missing #include <cmath>
Addressed `NumberToString.DecimalNotationUpTo21Digits` failures reported by yurivict at #3739 saying: /disk-samsung/freebsd-ports/science/InsightToolkit/work/ITK-5.2.1/Modules/Core/Common/test/itkNumberToStringGTest.cxx:87: Failure Expected equality of these values: numberToString(power_of_ten) Which is: "100000010000" '1' + std::string(exponent, '0') Which is: "100000000000" It appears that without `#include <cmath>`, the wrong `pow` overload may be called. Also explicitly declared the local `power_of_ten` variables as `TValue` and prevented a narrowing conversion from those `std::pow` calls, just to be sure.
- Loading branch information