String function ( boolean arg0 ) { if ( arg0 ) { if ( this . denom < this . num ) { int loc0 = this . num % this . denom ; int loc1 = this . num - loc0 ; int loc2 = loc1 / this . denom ; return ( "srini_string" + loc2 + "srini_string" + loc0 + "srini_string" + this . denom ) ; } } return ( "srini_string" + this . num + "srini_string" + this . denom ) ; }
returns string that prints the fractions like 1/4 , 2?2/3 , and so on when proper is true otherwise the fraction is simply return as a numerator and denominator 26/10 concode_field_sep int num concode_elem_sep int denom concode_field_sep Fraction recip concode_elem_sep int getNum concode_elem_sep int gcd concode_elem_sep Fraction sum concode_elem_sep void main concode_elem_sep void simplify concode_elem_sep int getDenom concode_elem_sep Fraction multiply