PrevUpHomeNext

.ceil method


Stay fast, stay longing.

.ceil member function of esv::class_type

esv::class_type::ceil

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

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.ceil(), b.ceil(), c.ceil(), d.ceil());	// 254 543 -254 -543
}

See Also

.floor method

esv::ix32

esv::fx64


PrevUpHomeNext

esv::print