16 BigNum(
const std::string_view str);
66 Rational(
const std::string_view numerator,
const std::string_view denominator);
68 std::shared_ptr<Rational>
clone()
const;
80 Rational &
set_(
const std::string_view numerator,
const std::string_view denominator);
Rational & operator-=(const Rational &rational)
std::string GetAsString() const
Rational & op_lshift_set(const Rational &)
Rational & op_pow_(const Rational &rational)
Rational & op_div_ceil_(Rational &rational)
bool op_equal(const Rational &rational) const
std::shared_ptr< Rational > clone() const
Rational & operator*=(const Rational &rational)
Rational & op_rshift_set(const Rational &)
Rational & operator^=(const Rational &)
const Rational & op_rrshift_set(const Rational &)
Rational & operator|=(const Rational &)
Rational & operator/=(const Rational &rational)
Rational & operator%=(const Rational &rational)
int64_t GetAsBoolean() const
int op_compare(const Rational &rational) const
Rational & set_(const int64_t value)
Rational & operator+=(const Rational &rational)
int64_t GetAsInteger() const
double GetAsNumber() const
BigNum & div(const BigNum &val, BigNum &rem)
bool SetFromString(const std::string_view str)
BigNum & operator=(const BigNum &var)
BigNum & mul(const BigNum &val)
std::string GetAsString() const
BigNum & sub(const BigNum &val)
double GetAsNumber() const
BigNum & add(const BigNum &val)
int64_t GetAsInteger() const
BigNum & set_(const BigNum ©)