Previous Up Next

2.8.2  Integer and fractional part : propfrac propFrac

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

q+
r
b
  with   0≤ r<b

if A/B=a/b with gcd(a,b)=1 and a=bq+r.
For rational fractions, cf. 2.28.8.
Input :

propfrac(42/15)

Output :

2+4/5

Input :

propfrac(43/12)

Output :

3+7/12

Previous Up Next