Vector Class Discussion

Please add fabs()
Author:  Date: 2014-10-19 08:04
Hello
C++ has fabs in addition to abs (http://en.cppreference.com/w/cpp/numeric/math/fabs) and fabs is the only way to get a floating point result with an integer argument (with C++11: double fabs( Integral arg );). To be closer to the standard e.g. Vec4i argument should produce a Vec4d result but maybe producing a result with same number of total bits would be less surprising or easier to work with. In either case please add, thanks!
 
thread Please add fabs() - Ilja Honkonen - 2014-10-19
last replythread Please add fabs() new - Agner - 2014-10-19
last replythread Please add fabs() new - Ilja Honkonen - 2014-10-19
last reply Please add fabs() new - Agner - 2014-10-19