utx::class_type::quo_mod
Method .quo_mod of utx::class_type is used to get the quotient and modulus result of a value divided by another value. As the calculating of modulus will also calculate the quotient value, if you need both of them, you can use .quo_mod method, not .mod, which will save duplicated calculating.
It returns utx::pair type to hold two values.
Positive/Negative flag rules, a % b :
#include <utxcpp/core.hpp> int main() { utx::ix32 a = -32; utx::pair<utx::ix32, utx::ix32> b = a.quo_mod(-7); utx::print(a.first, a.second); // 4 -4 }