Skip to content

c8_integer

Dave Hudson edited this page May 1, 2017 · 5 revisions

c8::integer

c8::integer is a class designed to represent the integers (all positive and negative whole numbers). Conceptually they behave in a somewhat similar way to int, but offer unlimited precision.

Constructors

Destructor

  • ~integer

Comparison Operators

Arithmetic Operators

Bitwise Operators

Assignment Operators

Public Member Functions

  • auto operator -() const -> integer
  • auto divide_modulus(const integer &v) const -> std::pair<integer, integer>
  • auto gcd(const integer &v) const -> integer
  • auto to_long_long() const -> long long
  • auto is_zero() const noexcept -> bool
  • auto is_negative() const -> bool
  • auto abs() const -> natural
  • auto negate() -> integer &
  • friend auto operator <<(std::ostream &outstr, const integer &v) -> std::ostream &

TBD

See Also

Clone this wiki locally