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

void ratio::setNumerator ( int  pnumerator = 0,
bool  reduce = true 
)

set numerator and reduce the ratio

Definition at line 104 of file ratio.cpp.

References m_numerator, and reduce().

Referenced by operator*(), operator+(), ratio(), setRatio(), TaskView::showResult(), ExercisePercentage::showResult(), and ExerciseConvert::showResult().

{
    m_numerator = pnumerator;

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

    return;
}

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