-
Notifications
You must be signed in to change notification settings - Fork 0
c8_natural_operator_mo
Dave Hudson edited this page May 2, 2017
·
3 revisions
auto operator %(const natural &v) const -> natural;
auto operator %(natural_digit v) const -> natural_digit;Divides the value of this object (left hand side of the operator) by v (right hand side of the operator), resulting in a new c8::natural object that represents the remainder.
A new c8::natural object with a value equal to the remainder of the value of this object divided by v.
-
std::bad_allocin the event of a memory allocation failure. -
c8::divide_by_zeroif the divisor,vis zero.