Skip to content

c8_integer_operator_di

Dave Hudson edited this page May 2, 2017 · 2 revisions

c8::integer::operator /

auto operator /(const integer &v) const -> integer;

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::integer object that represents the quotient. Any remainder is lost.

Return Value

A new c8::integer object with a value equal to the quotient of the value of this object divided by v.

Exceptions

  • std::bad_alloc in the event of a memory allocation failure.
  • c8::divide_by_zero if the divisor, v is zero.

See Also

Clone this wiki locally