AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Simple Math's fraction consisting of two integers, allowing to perform high-precision calculations without FPU.
Public Member Functions | |
AFraction (int numerator, int denominator) | |
AFraction (int number) | |
AFraction & | operator+= (int number) |
AFraction | operator+ (int number) const |
AFraction & | operator-= (int number) |
AFraction | operator- (int number) const |
AFraction & | operator*= (int number) |
AFraction | operator* (int number) const |
AFraction & | operator/= (int number) |
AFraction | operator/ (int number) const |
int | toInt () const |
float | toFloat () const |
double | toDouble () const |
#include <AUI/Util/AFraction.h>