AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AFraction Class Reference

Detailed Description

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)
 
AFractionoperator+= (int number)
 
AFraction operator+ (int number) const
 
AFractionoperator-= (int number)
 
AFraction operator- (int number) const
 
AFractionoperator*= (int number)
 
AFraction operator* (int number) const
 
AFractionoperator/= (int number)
 
AFraction operator/ (int number) const
 
int toInt () const
 
float toFloat () const
 
double toDouble () const
 

#include <AUI/Util/AFraction.h>


The documentation for this class was generated from the following file: