next up previous contents index
suivant: Numerator of a fraction monter: Rationals précédent: Transform a floating point   Table des matières   Index


Integer and fractional part : propfrac propFrac

propfrac(A/B) or propFrac(A/B) returns

q + $\displaystyle {\frac{{r}}{{b}}}$  with  0 $\displaystyle \leq$ r < b

if $\displaystyle {\frac{{A}}{{B}}}$ = $\displaystyle {\frac{{a}}{{b}}}$ with gcd(a, b) = 1 and a = bq + r.
For rational fractions, cf. 1.28.8.
Input :
propfrac(42/15)
Output :
2+4/5
Input :
propfrac(43/12)
Output :
3+7/12



giac documentation written by Renée De Graeve and Bernard Parisse