Template Function TRAP::Math::Abs(genFIType)#

Function Documentation#

template<typename genFIType>
constexpr genFIType TRAP::Math::Abs(genFIType x)#

Retrieve the absolute value of x.

Parameters:

x – Specify the value of which to return the absolute.

Returns:

x if x >= 0; otherwise it returns -x.