Template Function TRAP::Math::Trunc(genType)#

Function Documentation#

template<typename genType>
constexpr genType TRAP::Math::Trunc(genType x)#

Find the nearest integer less than or equal to x.

Parameters:

x – Specify the value to evaluate.

Returns:

Value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x.