kcalc
#include <knumber.h>
Public Types | |
enum | Type { TYPE_ERROR, TYPE_INTEGER, TYPE_FLOAT, TYPE_FRACTION } |
Public Member Functions | |
KNumber () | |
KNumber (const QString &s) | |
KNumber (qint32 value) | |
KNumber (qint64 value) | |
KNumber (quint32 value) | |
KNumber (quint64 value) | |
KNumber (qint64 num, quint64 den) | |
KNumber (quint64 num, quint64 den) | |
KNumber (double value) | |
KNumber (const KNumber &other) | |
~KNumber () | |
KNumber | abs () const |
KNumber | acos () const |
KNumber | acosh () const |
KNumber | asin () const |
KNumber | asinh () const |
KNumber | atan () const |
KNumber | atanh () const |
KNumber | bin (const KNumber &x) const |
KNumber | cbrt () const |
KNumber | ceil () const |
KNumber | cos () const |
KNumber | cosh () const |
KNumber | exp () const |
KNumber | exp10 () const |
KNumber | exp2 () const |
KNumber | factorial () const |
KNumber | floor () const |
KNumber | integerPart () const |
KNumber | ln () const |
KNumber | log10 () const |
KNumber | log2 () const |
KNumber & | operator%= (const KNumber &rhs) |
KNumber & | operator&= (const KNumber &rhs) |
KNumber & | operator*= (const KNumber &rhs) |
KNumber & | operator+= (const KNumber &rhs) |
KNumber | operator- () const |
KNumber & | operator-= (const KNumber &rhs) |
KNumber & | operator/= (const KNumber &rhs) |
KNumber & | operator<<= (const KNumber &rhs) |
KNumber & | operator= (const KNumber &rhs) |
KNumber & | operator>>= (const KNumber &rhs) |
KNumber & | operator^= (const KNumber &rhs) |
KNumber & | operator|= (const KNumber &rhs) |
KNumber | operator~ () const |
KNumber | pow (const KNumber &x) const |
KNumber | sin () const |
KNumber | sinh () const |
KNumber | sqrt () const |
void | swap (KNumber &other) |
KNumber | tan () const |
KNumber | tanh () const |
KNumber | tgamma () const |
qint64 | toInt64 () const |
QString | toQString (int width=-1, int precision=-1) const |
quint64 | toUint64 () const |
Type | type () const |
Static Public Member Functions | |
static QString | decimalSeparator () |
static KNumber | Euler () |
static QString | groupSeparator () |
static KNumber | Pi () |
static void | setDecimalSeparator (const QString &ch) |
static void | setDefaultFloatOutput (bool x) |
static void | setDefaultFloatPrecision (int precision) |
static void | setDefaultFractionalInput (bool x) |
static void | setGroupSeparator (const QString &ch) |
static void | setSplitoffIntegerForFractionOutput (bool x) |
Static Public Attributes | |
static const KNumber | NaN |
static const KNumber | NegInfinity |
static const KNumber | NegOne |
static const KNumber | One |
static const KNumber | PosInfinity |
static const KNumber | Zero |
Friends | |
bool | operator!= (const KNumber &lhs, const KNumber &rhs) |
bool | operator< (const KNumber &lhs, const KNumber &rhs) |
bool | operator<= (const KNumber &lhs, const KNumber &rhs) |
bool | operator== (const KNumber &lhs, const KNumber &rhs) |
bool | operator> (const KNumber &lhs, const KNumber &rhs) |
bool | operator>= (const KNumber &lhs, const KNumber &rhs) |
Detailed Description
Member Enumeration Documentation
enum KNumber::Type |
Constructor & Destructor Documentation
KNumber::KNumber | ( | ) |
Definition at line 270 of file knumber.cpp.
|
explicit |
Definition at line 276 of file knumber.cpp.
|
explicit |
Definition at line 332 of file knumber.cpp.
|
explicit |
Definition at line 338 of file knumber.cpp.
|
explicit |
Definition at line 344 of file knumber.cpp.
|
explicit |
Definition at line 350 of file knumber.cpp.
KNumber::KNumber | ( | qint64 | num, |
quint64 | den | ||
) |
Definition at line 356 of file knumber.cpp.
KNumber::KNumber | ( | quint64 | num, |
quint64 | den | ||
) |
Definition at line 362 of file knumber.cpp.
|
explicit |
Definition at line 377 of file knumber.cpp.
KNumber::KNumber | ( | const KNumber & | other | ) |
Definition at line 384 of file knumber.cpp.
KNumber::~KNumber | ( | ) |
Definition at line 393 of file knumber.cpp.
Member Function Documentation
KNumber KNumber::abs | ( | ) | const |
Definition at line 652 of file knumber.cpp.
KNumber KNumber::acos | ( | ) | const |
Definition at line 764 of file knumber.cpp.
KNumber KNumber::acosh | ( | ) | const |
Definition at line 824 of file knumber.cpp.
KNumber KNumber::asin | ( | ) | const |
Definition at line 754 of file knumber.cpp.
KNumber KNumber::asinh | ( | ) | const |
Definition at line 814 of file knumber.cpp.
KNumber KNumber::atan | ( | ) | const |
Definition at line 774 of file knumber.cpp.
KNumber KNumber::atanh | ( | ) | const |
Definition at line 834 of file knumber.cpp.
Definition at line 941 of file knumber.cpp.
KNumber KNumber::cbrt | ( | ) | const |
Definition at line 662 of file knumber.cpp.
KNumber KNumber::ceil | ( | ) | const |
Definition at line 901 of file knumber.cpp.
KNumber KNumber::cos | ( | ) | const |
Definition at line 721 of file knumber.cpp.
KNumber KNumber::cosh | ( | ) | const |
Definition at line 794 of file knumber.cpp.
|
static |
Definition at line 203 of file knumber.cpp.
|
static |
Definition at line 255 of file knumber.cpp.
KNumber KNumber::exp | ( | ) | const |
Definition at line 931 of file knumber.cpp.
KNumber KNumber::exp10 | ( | ) | const |
Definition at line 921 of file knumber.cpp.
KNumber KNumber::exp2 | ( | ) | const |
Definition at line 911 of file knumber.cpp.
KNumber KNumber::factorial | ( | ) | const |
Definition at line 844 of file knumber.cpp.
KNumber KNumber::floor | ( | ) | const |
Definition at line 891 of file knumber.cpp.
|
static |
Definition at line 196 of file knumber.cpp.
KNumber KNumber::integerPart | ( | ) | const |
Definition at line 434 of file knumber.cpp.
KNumber KNumber::ln | ( | ) | const |
Definition at line 881 of file knumber.cpp.
KNumber KNumber::log10 | ( | ) | const |
Definition at line 871 of file knumber.cpp.
KNumber KNumber::log2 | ( | ) | const |
Definition at line 861 of file knumber.cpp.
Definition at line 533 of file knumber.cpp.
Definition at line 542 of file knumber.cpp.
Definition at line 507 of file knumber.cpp.
Definition at line 489 of file knumber.cpp.
KNumber KNumber::operator- | ( | ) | const |
Definition at line 583 of file knumber.cpp.
Definition at line 498 of file knumber.cpp.
Definition at line 516 of file knumber.cpp.
Definition at line 566 of file knumber.cpp.
Definition at line 419 of file knumber.cpp.
Definition at line 574 of file knumber.cpp.
Definition at line 558 of file knumber.cpp.
Definition at line 550 of file knumber.cpp.
KNumber KNumber::operator~ | ( | ) | const |
Definition at line 592 of file knumber.cpp.
|
static |
Definition at line 240 of file knumber.cpp.
Definition at line 682 of file knumber.cpp.
|
static |
Definition at line 189 of file knumber.cpp.
|
static |
Definition at line 233 of file knumber.cpp.
|
static |
Definition at line 210 of file knumber.cpp.
|
static |
Definition at line 226 of file knumber.cpp.
|
static |
Definition at line 182 of file knumber.cpp.
|
static |
Definition at line 219 of file knumber.cpp.
KNumber KNumber::sin | ( | ) | const |
Definition at line 711 of file knumber.cpp.
KNumber KNumber::sinh | ( | ) | const |
Definition at line 784 of file knumber.cpp.
KNumber KNumber::sqrt | ( | ) | const |
Definition at line 672 of file knumber.cpp.
void KNumber::swap | ( | KNumber & | other | ) |
Definition at line 427 of file knumber.cpp.
KNumber KNumber::tan | ( | ) | const |
Definition at line 731 of file knumber.cpp.
KNumber KNumber::tanh | ( | ) | const |
Definition at line 804 of file knumber.cpp.
KNumber KNumber::tgamma | ( | ) | const |
Definition at line 741 of file knumber.cpp.
qint64 KNumber::toInt64 | ( | ) | const |
Definition at line 645 of file knumber.cpp.
QString KNumber::toQString | ( | int | width = -1 , |
int | precision = -1 |
||
) | const |
Definition at line 601 of file knumber.cpp.
quint64 KNumber::toUint64 | ( | ) | const |
Definition at line 638 of file knumber.cpp.
KNumber::Type KNumber::type | ( | ) | const |
Definition at line 400 of file knumber.cpp.
Friends And Related Function Documentation
Definition at line 266 of file knumber_operators.cpp.
Definition at line 294 of file knumber_operators.cpp.
Definition at line 280 of file knumber_operators.cpp.
Definition at line 259 of file knumber_operators.cpp.
Definition at line 287 of file knumber_operators.cpp.
Definition at line 273 of file knumber_operators.cpp.
Member Data Documentation
The documentation for this class was generated from the following files:
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.