PrevUpHomeNext

esv::round


Do not fight birds.

esv::round: get the round value of esvcpp real meric value. The result type is the same as the value type.

constexpr inline auto round(const type1 & value);

c++ Example

#include <esvcpp/math.hpp>

int main()
{
	esv::fx32 d = 32.23f;
	d = esv::round(d); // 32.0f
	esv::fx32 e = 32.6f;
	e = esv::round(e); // 33.0f
}

PrevUpHomeNext

esv::print