xte::big_int<T>::operator/=()

Defined in header <xte/math/big_int.hpp>


Definitions

#0
constexpr xte::big_int<T>& operator/=(const xte::big_int<T>& rhs) & noexcept(false);
Divides the big-integer by rhs. May throw if allocation fails or if rhs is zero.



Example

constexpr auto u64_max = 18446744073709551615ull;
auto n = xte::big_int("-340282366920938463426481119284349108225");
n /= u64_max;
std::println("{}", n);
Output:
-18446744073709551615
[View in Compiler Explorer]