Closed paulhoux closed 6 months ago
Thanks for this Paul - these look like nice additions, and I'm inclined to merge this shortly unless anyone has any additional comments.
Once accepted, please --squash
this branch to a single commit when merging.
…providing a safer way to do things like
double value; if( value == 0.0 ){}
.Compared to previous versions of the code, I have explicitly added the
std::
namespace toabs
. While this is not necessary in Visual Studio (it already uses std::abs by default), it may be required for other compilers. Using the C++ functionstd::abs
if preferred over the C-functionfabsf
.I also added versions for
double
s.