PrevUpHomeNext

.floor method


If you really want to do something, you’ll find a way.

.floor member function of esv::class_type

esv::class_type::floor

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

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

c++ example

#include <esvcpp/core.hpp>

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

See Also

.floor_fpp method

.fpp method

esv::ix32

esv::fx64


PrevUpHomeNext

E