PrevUpHomeNext

utx::floor


utx::floor: get the floor value of utxcpp real meric value. The result type is the same as value type.

template <utx::real_meric real_type>
constexpr inline auto floor(const real_type & value);

c++ Example

#include <utxcpp/math.hpp>

int main()
{
	utx::fx64 a = 2.578;
	a = utx::floor(a); // 2.0
}

PrevUpHomeNext

utx::print

esv::print