PrevUpHomeNext

.mod method


.mod member function of utx::class_type

utx::class_type::mod

Method .mod of utx::class_type is used to get the modulus value of the object value.

Positive/Negative flag rules, a % b :

c++ example

#include <utxcpp/core.hpp>

int main()
{
	constexpr utx::ix32 a = 13;
	constexpr utx::fx64 b = -3.7;
	constexpr auto c = a.mod(4);
	constexpr auto d = b.mod(1.3);
	utx::print(c, d);	// 1 -1.1
}

See Also

.quo_mod method

.quo method

utx::ix32

utx::fx64


PrevUpHomeNext

utx::print

esv::print