src/HumNum.cpp
int HumNum::getInteger(double round) const {
	if (top < 0) {
		return -(int(-top/bot + round));
	} else {
		return int(top/bot + round);
	}
}
//////////////////////////////
//
// HumNum::getInteger -- Returns the integral part of the fraction.
//    Default value: round = 0.0
//    Optional parameter is a rounding factor.
//    Examples:
//       8/5 | round=0.0 ==  1
//      -8/5 | round=0.0 == -1
//       8/5 | round=0.5 ==  1
//      -8/5 | round=0.5 == -1
//
:getInteger -- Returns the integral part of the fraction.
Default value: round = 0.0
Optional parameter is a rounding factor.
: getInteger -- Returns the integral part of the fraction . Default value : round = 0 . 0 Optional parameter is a rounding factor .
int HumNum::getInteger(double round) const {
	if (top < 0) {
		return -(int(-top/bot + round));
	} else {
		return int(top/bot + round);
	}
}
int HumNum :: getInteger ( double round ) const { if ( top < 0 ) { return - ( int ( - top / bot + round ) ) ; } else { return int ( top / bot + round ) ; } }
HumNum::getInteger -- Returns the integral part of the fraction.
HumNum :: getInteger -- Returns the integral part of the fraction .