Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Examples  

rational.h File Reference

Rational numbers. More...

Go to the source code of this file.

Compounds

class  rational
 Implementation of a Rational Number. More...


Functions

template<class T> int cmp (const rational< T > &a, const rational< T > &b)


Detailed Description

Rational numbers.

The module containes implementation for a rational number

Definition in file rational.h.


Function Documentation

template<class T>
int cmp const rational< T > & a,
const rational< T > & b
 

Returns

  • 0 if a = b,
  • -1 if a < b,
  • 1 if a > b.

Definition at line 395 of file rational.h.

Referenced by rational::operator!=(), rational::operator<(), rational::operator<=(), rational::operator==(), rational::operator>(), and rational::operator>=().


Generated at Tue Jan 22 20:37:04 2002 for Arageli by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001