PrevUpHomeNext

.floor method


.floor member function of utx::class_type

utx::class_type::floor

Method .floor of utx::class_type can be used to get the floor value of integral or floating value of utx::class_type.

If a value is negative, its floor is negative too.

c++ example

#include <utxcpp/core.hpp>

int main()
{
	constexpr utx::ix32 a = 254;
	constexpr utx::fx64 b = 542.445;
	constexpr utx::ix32 c = -254;
	constexpr utx::fx64 d = -542.445;
	utx::print(a.floor(), b.floor(), c.floor(), d.floor());	// 254 542 -254 -542
}

See Also

.floor_fpp method

.fpp method

utx::ix32

utx::fx64


PrevUpHomeNext

utx::print

esv::print