up previous next

Rationals

Rational numbers can be entered as fractions or as terminating decimals. CoCoA always converts a rational number into a fraction in lowest terms.

example

    
3/5;
3/5
-------------------------------
3.8;
19/5
-------------------------------
N := 4/8;
N;
1/2
-------------------------------