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.
#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 }