AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AFraction Class Reference

#include <AUI/Util/AFraction.h>

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
 

Detailed Description

Simple Math's fraction consisting of two integers, allowing to perform high-precision calculations without FPU.


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