kcalc
knumber_fraction.cpp
Go to the documentation of this file.
474 if(mpz_cmpabs_ui(mpq_numref(mpq_), 1000000) > 0 || mpz_cmpabs_ui(mpq_denref(mpq_), 1000000) > 0 || mpz_cmpabs_ui(mpq_numref(p->mpq_), 1000000) > 0 || mpz_cmpabs_ui(mpq_denref(p->mpq_), 1000000) > 0) {
756 const size_t size = gmp_snprintf(NULL, 0, "%Zd %Zd/%Zd", integer_part_1.mpz_, num, mpq_denref(mpq_)) + 1;
static bool split_off_integer_for_fraction_output
Definition: knumber_fraction.h:37
static void set_default_fractional_output(bool value)
Definition: knumber_fraction.cpp:43
static void set_default_fractional_input(bool value)
Definition: knumber_fraction.cpp:36
virtual knumber_base * bitwise_or(knumber_base *rhs)
Definition: knumber_fraction.cpp:310
virtual knumber_base * add(knumber_base *rhs)
Definition: knumber_float.cpp:171
virtual knumber_base * reciprocal()
Definition: knumber_fraction.cpp:799
virtual knumber_base * mul(knumber_base *rhs)
Definition: knumber_float.cpp:219
virtual knumber_base * div(knumber_base *rhs)
Definition: knumber_fraction.cpp:229
virtual knumber_base * pow(knumber_base *rhs)
Definition: knumber_float.cpp:757
virtual knumber_base * bitwise_and(knumber_base *rhs)
Definition: knumber_fraction.cpp:288
virtual knumber_base * mul(knumber_base *rhs)
Definition: knumber_fraction.cpp:191
virtual bool is_zero() const =0
Definition: knumber_base.h:38
Definition: knumber_fraction.h:28
virtual knumber_base * sub(knumber_base *rhs)
Definition: knumber_fraction.cpp:165
virtual bool is_integer() const
Definition: knumber_fraction.cpp:132
virtual knumber_base * pow(knumber_base *rhs)
Definition: knumber_fraction.cpp:435
Definition: knumber_integer.h:28
virtual knumber_base * div(knumber_base *rhs)
Definition: knumber_float.cpp:253
virtual knumber_base * mod(knumber_base *rhs)
Definition: knumber_fraction.cpp:273
virtual knumber_base * sub(knumber_base *rhs)
Definition: knumber_float.cpp:195
virtual knumber_base * add(knumber_base *rhs)
Definition: knumber_fraction.cpp:139
virtual quint64 toUint64() const
Definition: knumber_fraction.cpp:888
static void set_split_off_integer_for_fraction_output(bool value)
Definition: knumber_fraction.cpp:50
virtual knumber_base * bitwise_xor(knumber_base *rhs)
Definition: knumber_fraction.cpp:299
virtual knumber_base * bin(knumber_base *rhs)
Definition: knumber_fraction.cpp:902
virtual QString toString(int precision) const
Definition: knumber_fraction.cpp:733
static bool default_fractional_input
Definition: knumber_fraction.h:35
Definition: knumber_float.h:28
virtual int compare(knumber_base *rhs)
Definition: knumber_float.cpp:795
knumber_fraction(const QString &s)
Definition: knumber_fraction.cpp:57
Definition: knumber_error.h:28
virtual ~knumber_fraction()
Definition: knumber_fraction.cpp:125
static bool default_fractional_output
Definition: knumber_fraction.h:36
virtual int compare(knumber_base *rhs)
Definition: knumber_fraction.cpp:710
virtual knumber_base * factorial()
Definition: knumber_integer.cpp:660
virtual qint64 toInt64() const
Definition: knumber_fraction.cpp:895
friend class knumber_integer
Definition: knumber_fraction.h:31
virtual knumber_base * factorial()
Definition: knumber_fraction.cpp:420
virtual knumber_base * bitwise_shift(knumber_base *rhs)
Definition: knumber_fraction.cpp:321
QByteArray toAscii() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.