Logo Search packages:      
Sourcecode: kbruch version File versions  Download package

void ratio::setRatio ( int  pnumerator,
int  pdenominator,
bool  reduce = true 

set both numerator and denominator; reducing will be done after numerator and denominator were set!

Definition at line 132 of file ratio.cpp.

References reduce(), setDenominator(), and setNumerator().

Referenced by ExerciseMixedNumbers::createTask(), setRatio(), and ExerciseMixedNumbers::showResult().

    setNumerator (pnumerator, false);
    setDenominator (pdenominator, false);

    // check, if we have to reduce the ratio
    if (reduce_it == true) {


Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index