Template Function TRAP::Math::Floor(T)#

Function Documentation#

template<typename T>
constexpr T TRAP::Math::Floor(T 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 that is less then or equal to x.